Calculate distance and travel time