calculate wavelength for slot