$$R_{balance} = \frac{NV_{rate} - V_{bus}}{I_{maxleak}}$$
N is the number of capacitors in series
Vrate is the rated maximum voltage for any one capacitor
Vbus is the bus voltage (the expected voltage across the whole series of capacitors)
Imaxleak is the maximum leakage current
Rbalance is the...