Calculate trip time

Hey updated the file to merge our methods.