Capacitor active power consumption calculation