Actually,
Iron fish and Rattlesnake guy's formulas are both incorrect as neither takes into account the refraction constant. While the earths curvature makes the horizon appear slightly higher, the light moving through the earths atmosphere makes the horizon look slightly lower. I am a land surveyor and must make both corrections to every distance I measure (although my instrument makes these calculations so there is no need for tedious formulas !!)