Echo reflection and distance calculation