You look at the size of the pot and the amount you have to call and estimate what is the chance you will have the best hand after the flop, this defines you odds.
If you or opponent is all in you have to estimate what is the odds you will have the best hand by the river.