Electric energy formula of capacitor output