Hi everyone!
I want to show the total payout for a PARLAY bet—for example I might bet that Man United AND Man City win their next soccer game; both events must be true to win. The odds are from an API and are in a repeating group.
Here’s an example! Let’s say a user chooses two events: +300 and –145 odds, respectively.
-
First, Bubble must convert these american odds into decimal odds. For Positive odds (+300), the formula is: (1 + (+300/100)) = 4.00. For Negative odds (–150), the formula is: (1 – (100/–150) = 1.67.
-
Decimal odds must be multiplied together. In our example, we do (4.00 * 1.67) = 6.67.
The last part is simple—we can just multiply 6.67 by the user’s inputted bet to get the payout.
Thank you so much if you can help! –Drew