The value returned by your sensor is called duration. You then convert that to a number in a variable called inches. What you you want the servo to do with that value?
Servos work by turning through an angle, this is normally in degrees. I can't see what you are trying to do. You can't get a servo to move a number of inches.