Frequency and wavelength calculations