time calculation in geography formula