Calculate trip time

merged my trip duration method