[Community Puzzle] By train or by car?

distance is double is not int

the distances are float and not integer.
if distance is inferior to 14 for the car it’s the low speed.
if distance is inferior to 6 for the train it’s the low speed.
and do floor on the final time.
and the final format is 0:02

Hello there,

I’m 1 or 2 minutes off for test cases 7, 8 and 9, which all involve some distances inferior to 6 and/or 14. I have a condition to handle this edge case for both train and car and redid the whole calculation by hand, I got the same result my code outputs and it differs from what the test case expects, which means there’s probably something I fundamentally misunderstood about this calculation. May I send a PM with my code to clarify what’s wrong with how I calculate the travel time ?

EDIT : Calculation was fine, parsing of the input data was not; I incorrectly assumed distance would always be an integer and thus lost every decimal part of the input data. Everything works fine now.

It has already been written above that the data type for the distance was not specified in the puzzle conditions, and I want to repeat this again: for input data, it is necessary to specify their type/format/constraints.