Calculation of Electromagnetic Power Deposition