Calculation of Speed of Electromagnetic Waves