I think that's a bit different. I tried to draw a diagram: http://i.imgur.com/XT3uGdM.png
If kovek's question was like the first image there, it'd be a simple radius/circumference calculation (2 * pi * 5km). But it sounds like the second image to me - which makes it into more of a horizon line problem.