Calculates speed, distance and time