Capacitance formula for a series capacitor bank