Calculate trip time

Add method to calculate trip time.