Using millis() and if statement to run ultrasonic sensor and servo motors

You need to be a little more specific about what it is you want to do.

What decision is the if meant to make?