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.

Calculation I - MVA & X/R

Note: S1 & S2 are apparent powers (VA, KVA or MVA)

Results - Calculation I (MVA & X/R)

Calculation II - P & Q

Note: P1 & P2 are real powers (W, KW or MW)
Q1 & Q2 are reactive powers (var, kvar or mvar)

Results - Calculation II (P & Q)