Formula For Calculating Energy Of A Photon