Capacitor ratio calculation formula