What's the formula for distance?