Calculate V02 Max

Options
I want to calculate my VO2 max. All the tests on the net, want me to get the distance that I can run in 6 or 12 minutes.
I wonder if it is the same if I run on treadmill not on street.