Why would there be an equation for distance as that is a constant.

Just look at how long it takes you to travel from one area to another and transpose the formula. To make it easier though you need to do it in a zero skill ship/vehicle to eliminate the skill modifier to travel times.