Calculating speed, distance and time in practical situations