Calculate trip time

Added a method to calculate the time for trip of a certain distance.