initial comit and haversine formula calculator