Calculate trip time

I made changes to the train.rb file