How to calculate the capacitor ratio