Range to height calculation

Where can I find a range to height calculator that also includes ref. index and curvature of the earth?
I am trying to calculate the height above ground that also includes changes in refractive index with height, given that I have a defined set of increasing range values. (sort of an inverse problem)

Hey

Is this what you are looking for?

There is an example within the beam blockage tutorial.