[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