This calculation provides the exact method of evaluating complex quantities (A + jB) . Though is it designed to calculate complex MVAs, it could also do the same for impedances, substitute R for P, X for Q and Z for S, the X/R should remain the same.