Wavelength and frequency calculations