Photon wavelength calculator