Earth is not flat, so object may disappear below horizon.
This sample is a method to find altitudes of distant objects.
It will find horizon distance according to height of observer and target.
Light refracts, so visibility range may differ with temperature and elevation.
While calculating horizondistance, this phenomenon should also be considered.
Regards
horizon_lapse.sm (50 KiB) downloaded 72 time(s).