Skip to contents

This function calculates the payout for a given bet.

Usage

bet_calc(risk, odds, type = "us")

Arguments

risk

Amount risked for your bet(s) (110, 105)

odds

Odds for the bet (-132, -115)

type

Type of odds. Possible values are:

  • us, American Odds

  • dec, Decimal Odds

  • frac, Fractional Oddss

Value

payout Payout of a bet

Examples

bet_calc(risk = 100, odds = -132, type = "us")
#> [1] 175.76
bet_calc(risk = 500, odds = 2.3, type = "dec")
#> [1] 1150
bet_calc(risk = 25, odds = 20/1, type = "frac")
#> [1] 525