A plane takes off at 6:00 a.m. and flies for 4 hours from New York City to Chicago. The plane stays at the port in Chicago for 1 hour and then departs for Miami. If the aircraft took three times as many hours to fly to Miami than it took to fly from New York to Chicago, calculate the total time to travel from New York to Miami. Let's think step by step and output the final answer after "####".
user
Before departing for Miami from Chicago, the total time the plane had taken for the journey is 4+1 = <<4+1=5>>5 hours.
It took 3*4 = <<3*4=12>>12 hours to fly to Miami

The total flying time from New York to Miami is 12+5 = <<12+5=17>>17 hours
#### 17
A plane takes off at 6:00 a.m. and flies for 4 hours from New York City to Chicago. The plane stays at the port in Chicago for 1 hour and then departs for Miami. If the aircraft took three times as many hours to fly to Miami than it took to fly from New York to Chicago, calculate the total time to travel from New York to Miami.
train