under the latitudes of France or Belgium (~45°), it is usual to take 6371000 for the radius of the earth instead of 6378, which is the radius of the earth at the equator. (https://fr.wikipedia.org/wiki/Rayon_de_la_Terre)
You make a confusion between altitude and ground curvature.
There's no doubt that altitude can change things a lot. That's why I was looking for a formula taking the altitude into account.
I can confirm that the computation in post #14 is extremely accurate (centimetric accuracy). I checked with the accurate computations made by a professional tool.