Capacitor in circuit calculation