Which of the following would be a good name for the function that takes the length of a race and returns the time needed to complete it?

In general, a function f(x) means that the input is x and the output is f(x) (or simply f).
Therefore, in our case, the input is the length of the race and the outcome is the time.