# Thread: hello i need help with Draw no bet math in a program i am wrighting

1. ## hello i need help with Draw no bet math in a program i am wrighting

I don't know if we are allowed to talk about betting but it is math. Some one has asked me to make them a calculator for a Draw no bet system like the one found on arbcruncher but they did not know any of the math. So I have worked out most of it but am struggling with this any help would be greatly appreciated. So i have worked out one part but the other 2 are giving me trobel here is the first one
What is given for this one DNBWager=14.50 , DrawCommission=5, WinCommission =5,DrawOdds =3, WinOdds =2
// Formula wager / ((DrawOdds-1)*(1-drawcommission/100)+1)
DrawStake= DNBWager / ((DrawOdds-1)*(1-DrawCommission/100)+1)
WinStake = DNBWager-DrawStake
// Formula origanal profit - (Origanal profit + DrawStake)* WinCommission/100
DNBprofit = (WinStake*WinOdds-DNBWager)-(((WinStake*WinOdds-DNBWager)+DrawStake)/100*WinCommission)
Now I have to convert that to give me the same info when I know
1) DrawStake = 5 But do not know WinStake or Wager (it would have to find these)
2) WinStake = 9.50 but do not know DrawStake or WagerDNB (It would have to find these)
profit should come out to be 4.03