1240 wavelength formula