Formula for hydrodynamic escape, calculation example

~Atmospheric loss
If the atmosphere of a hot Jupiter is stripped away via hydrodynamic escape, its core may become a chthonian planet. The amount of gas removed from the outermost layers depends on the planet’s size, the gases forming the envelope, the orbital distance from the star, and the star’s luminosity. In a typical system, a gas giant orbiting at 0.02 AU around its parent star loses 5–7% of its mass during its lifetime, but orbiting closer than 0.015 AU can mean evaporation of a substantially larger fraction of the planet’s mass. No such objects have been found yet and they are still hypothetical.
Another: Revealed TRAPPIST-1d is destroying atmosphere.