Parse distance as a number