With the correct changes made you should get the output as below when testing the Time function path.

Code:
Time
----

Input the distance in m: 400
Input the speed(m/s): 100
Your time is: 4.000
Do you want to return to the main menu?
        1: y
        2: n
 Input: 2
Cya!