hi
this is part of the condition formula calculation.
((((s_1_bm_backa*(s_1_bm_backp-1))+s_1_bm_backa)/(s_1_lay_price+.0001))-s_1_bm_backa)
the .0001 is there because you cannot divide by 0 , this covers any selections that have no bets on them.
you have to repeat the above for as many selections that you might use.
this is the bet amount formula
((bm_backa*(bm_backp-1))+bm_backa)/(lay_price)
mcbee