Calculate the wavelength