The math behind calculating payouts on sports bets

1
When the odds are negative, change the number to positive and use this formula: 100/Odds * Stake = Profit.
2
When the odds are positive: Odds/100 * Stake = Profit.