Perpendicular Distance Calculator