This content has been marked as final. Show 5 replies
I am trying to create an app that calculates salesbonus for our Salespersons. It works in steps so items between 1-10 give 100, between 10-20 200 and so on until 500 is reached. But the problem is that it works backwards, so if you have reached 20 the amount is 200 for every item sold, also items between 1-10 etc. So I need to find a way that finds the max value of bonus amount and applies to all former items sold.
So in this example 400 is the maximum and I would like to be able to use that as a multiplier for items back in time or for example for 10/2/2017 I would calculate 6*400 = 2400.
Any ideas on how to solve this?