Module: Bet::ExpectedProfit
Instance Method Summary collapse
Instance Method Details
#expected_profit ⇒ Object
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 |