Energy calculation of two capacitors in parallel