Capacitor principle and compensation calculation