Impedance and Phase Angle Calculation