Need Help with Piezo Buzzer and Ultrasonic Sensor code

I've been looking over the Blink Without Delay page.

I'm new to C/C++ so I'm a bit confused. Can someone give a suggestion on how to compare the distance number (range of the HC-SR04 is 2-400 CM) to the tone delay interval number for the Buzzer so one will influence the other?