Capacitor detailed calculation