0000395: [Program] Function to calculate time from distance and speed