Calculate trip time

add calculate trip time