Incorrect distance

This may be a beer infused ramble that seems logical at the time I posted it but distance doesn’t really matter outside either does it?

What I’m thinking is that your time to complete to a flat 40k is going to be different from your time to complete a 40k in the mountains. Add in a headwind or tailwind and that will also effect your times as well.