=http://www.flopturnriver.com/pokerfo...ad-180192.html
Set up an equation for EV, solve for x. Done.
At least try it yourself. Spoon made this one big ass post that basically tells you exactly how to set something like this up...yet i dont even see that you've made an attempt at an equation. Cmon now.