Capacitor instantaneous current calculation formula