I am hoping someone might be able to help. I am trying to create a tier list but need quantities to output properly.
For example, I have 3 tiers:
500 (0-500)
1000 (501-1000)
5000 (1001-5000)
If I have an input # of 500, the 500 tier will be quantity of 1. However, if I have an input # of 900, I would like the tier of 1000 to have a quantity of 1 instead of 2, 500 tier. The reason I want to round up to 1, 1000 is due to the price.
for example, 1, 500 tier will cost $65,000 and 1, 1000 tier will cost $91,000. So having the quantity to go to 1, 1000 instead of 2, 500 is more cost effective (for the input # of 900).
Essentially, I would like the quantity of tiers to optimize so that the cost is beneficial for a customer. other examples:
input # is 2800
tiers are:
500 = 0 quantity
1000 = 3 quantity
5000 = 0 quantity
input # is 6500
500 = 1 quantity
1000 = 1 quantity
5000 = 1 quantity
Thank you
For example, I have 3 tiers:
500 (0-500)
1000 (501-1000)
5000 (1001-5000)
If I have an input # of 500, the 500 tier will be quantity of 1. However, if I have an input # of 900, I would like the tier of 1000 to have a quantity of 1 instead of 2, 500 tier. The reason I want to round up to 1, 1000 is due to the price.
for example, 1, 500 tier will cost $65,000 and 1, 1000 tier will cost $91,000. So having the quantity to go to 1, 1000 instead of 2, 500 is more cost effective (for the input # of 900).
Essentially, I would like the quantity of tiers to optimize so that the cost is beneficial for a customer. other examples:
input # is 2800
tiers are:
500 = 0 quantity
1000 = 3 quantity
5000 = 0 quantity
input # is 6500
500 = 1 quantity
1000 = 1 quantity
5000 = 1 quantity
Thank you