Square Calc: find A, P, d