a math formula - RESOLVED -
Posted: Tue Oct 15, 2024 8:08 am
I need to make a formula to calculate a final value having an initial value for example 1 € and a fixed profit from 1 to 999
for example
If nFixedProfit is 10, nInitialBet becomes 1.50.
If nFixedProfit is from 10 to 13 nInitialBet becomes 1.50.
If nFixedProfit is 14 nInitialBet becomes 2.00
If nFixedProfit is from 15 to 18 nInitialBet becomes 2.00
If nFixedProfit is 19 nInitialBet becomes 2.50
If nFixedProfit is 20, nInitialBet becomes 2.50.
If nFixedUse is from 20 to 23 nInitialBet becomes 2.50
If nFixedUse is 24, nInitialBet becomes 3.00.
If nFixedUse is from 25 to 27 nInitialBet becomes 3.00
If nFixedUse is 28, nInitialBet becomes 3.50
and so on
If nFixedUse is 50, nInitialBet becomes 5.50.
there is probably a formula that I don't know
I created this one but it works up to a certain point
nUtileFisso := 20
nPuntataIniziale := 100
nPuntataIniziale := floor(nPuntataIniziale+(nUtileFisso/100)+ (nUtileFisso - 10) / 10)
that gives me back 2.00 but must do 2,50
I allready ask to OPenAI and he not resolved it
How I can resolve it ?
for example
If nFixedProfit is 10, nInitialBet becomes 1.50.
If nFixedProfit is from 10 to 13 nInitialBet becomes 1.50.
If nFixedProfit is 14 nInitialBet becomes 2.00
If nFixedProfit is from 15 to 18 nInitialBet becomes 2.00
If nFixedProfit is 19 nInitialBet becomes 2.50
If nFixedProfit is 20, nInitialBet becomes 2.50.
If nFixedUse is from 20 to 23 nInitialBet becomes 2.50
If nFixedUse is 24, nInitialBet becomes 3.00.
If nFixedUse is from 25 to 27 nInitialBet becomes 3.00
If nFixedUse is 28, nInitialBet becomes 3.50
and so on
If nFixedUse is 50, nInitialBet becomes 5.50.
there is probably a formula that I don't know
I created this one but it works up to a certain point
nUtileFisso := 20
nPuntataIniziale := 100
nPuntataIniziale := floor(nPuntataIniziale+(nUtileFisso/100)+ (nUtileFisso - 10) / 10)
that gives me back 2.00 but must do 2,50
I allready ask to OPenAI and he not resolved it
How I can resolve it ?