Module: Bet::ExpectedProfit

Included in:
Bet, Parlay
Defined in:
lib/odds/bet.rb

Instance Method Summary collapse

Instance Method Details

#expected_profitObject



3
4
5
6
# File 'lib/odds/bet.rb', line 3

def expected_profit
  n = (win_chance * odds.win_amount_with_principal) - 1.0
  n * wagered_amount.to_f
end