It works because you translate miles to km.

The question is if the cost is per mile or per km.