Capacitor bank current calculation