# How to calculate an additive tax in Calc?

Consider a tax (e.g income tax) which is applied in the format:

- 0-500€: 0%
- 500-1000€: 12%
- 1000-1500€: 28%

So if a person earns 500€, tax is 0, if they earn 1500, then the first 500€ have no tax, the next 500€ have 12%, and the final 500€ have 28%.

What is the best way in Calc to determine the earnings by providing the salary.