Betting sites calculate cash-out using the potential winnings and the current odds you would get if you placed your bet now.