E=1/2 CV^2
https://www.khanacademy.org/science/physics/circuits-topic/circuits-with-capacitors/v/energy-capacitor