Your example is a bit off. You said on the river we are calling $35 into a $40 pot. However, if the turn pot is $20 and villain bet $18, the river pot with be $56.