Formula For Electricity From Magnetic Energy