roughing out distance calculation