Calculate trip time

Added calculate trip time method to Train class.