The cash out value is calculated based on the amount staked, the odds at the time the bet was placed, and the current odds at the time of the cash out.