CALCULATE EQUIVALENT IMPEDANCE IN AC CIRCUITS