Capacitor voltage divider ratio calculation