Capacitor series voltage calculation