Calculate trip time

Added some trip duration stuff.