Distance and Depth Calculations