Problem with calculating distance between two points on Earth using the Haversine formula

A draggable procedure of your formula