duration and distance to speed