Wavelength calculator