Wavelength calculation in hydrogen atom transitions