Workout distance calculation.