PAYE Payroll Calculation for Nigeria using Formula

There are two approaches actually… one which is a bit confusing (my first attempt) and one which @Fred1 used which is simplified. But the key is using condition field to satisfy the “IF” in the calculation and formula to calculate the tax payable for every tax step. I can’t really break it down in here as it is a bit long but i’m trying to implement it on my live server now and once i’m done i will post a screenshot.