Ultrasound wavelength calculation