inquisitor
New Member
- Joined
- Jan 15, 2012
- Messages
- 15
Greetings,
I can find information about how to build a formula to calculate income tax, but I can't seem to get them to work for my use case, which is admittedly a little different. Let's say I have a price chart:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]From[/TD]
[TD]To[/TD]
[TD]Price Ea[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]1000[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]5000[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]5001[/TD]
[TD]10000[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]10001[/TD]
[TD]25000[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]25001[/TD]
[TD]50000[/TD]
[TD]38[/TD]
[/TR]
[TR]
[TD]50001[/TD]
[TD]100000[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]250000[/TD]
[TD]35[/TD]
[/TR]
</tbody>[/TABLE]
The way I'd like this to work is every unit up to 1000 costs 200 each. Every unit beyond that up to 5000 costs 50 each. Every unit beyond 5000 up to 10,000 costs 45 each. And so on. A few examples to make this clear:
500 units should cost 100,000 (500x200).
1000 units should cost 200,000 (1000x200).
2000 units should cost 250,000 (1000x200 + 1000x50).
7500 units should cost 512,500 (1000x200 + 4000x50 + 2500x45).
What's the most efficient way to solve this problem with a formula? If not the most efficient, what's a pragmatic way to do it? Appreciate any help/guidance.
I can find information about how to build a formula to calculate income tax, but I can't seem to get them to work for my use case, which is admittedly a little different. Let's say I have a price chart:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]From[/TD]
[TD]To[/TD]
[TD]Price Ea[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]1000[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]1001[/TD]
[TD]5000[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]5001[/TD]
[TD]10000[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]10001[/TD]
[TD]25000[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]25001[/TD]
[TD]50000[/TD]
[TD]38[/TD]
[/TR]
[TR]
[TD]50001[/TD]
[TD]100000[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]250000[/TD]
[TD]35[/TD]
[/TR]
</tbody>[/TABLE]
The way I'd like this to work is every unit up to 1000 costs 200 each. Every unit beyond that up to 5000 costs 50 each. Every unit beyond 5000 up to 10,000 costs 45 each. And so on. A few examples to make this clear:
500 units should cost 100,000 (500x200).
1000 units should cost 200,000 (1000x200).
2000 units should cost 250,000 (1000x200 + 1000x50).
7500 units should cost 512,500 (1000x200 + 4000x50 + 2500x45).
What's the most efficient way to solve this problem with a formula? If not the most efficient, what's a pragmatic way to do it? Appreciate any help/guidance.