Example case:
Say you for some crazy reason want to go to Mars.
Going to Mars means following a Hohmann transfer.
The Hohmann transfer is an ellipse tangential the orbit of the Earth.
Calculate the difference between the velocity of the Earth's orbit, and the velocity of the elliptical orbit at the tangent point.
That is your v_inf.