I would like a formula that works out the UK tax payments required on a certain sum.

The amount between 0 - 2,230 gets 10% deducted.

Then the amount between 2,231 - 34,600 gets 22% deducted.

Then the amount above 34,600 gets 40% deducted.

Any ideas how I could put that in one formula?

Cheers