In: Accounting
Consider another hypothetical tax code. Assume the tax rate on the first $15,000 of taxable income is 10% and the tax rate on any additional income is 18%. The standard deduction ($6,350) and personal exemption ($4,050) still apply.
In other words:
• For taxable income from $0 to $15,000, you pay 10% of your
taxable income in taxes, plus
• For taxable income above $15,000, you pay 18% of your taxable income.
If your total income before exemptions were $10,000 how much would you pay in taxes? Then, write a function to model the total tax paid, T(x), with a total income of x dollars.
Let the total Income be $Y
Standard Deduction is $6350
Personal exemption is $4050
So total deduction available is $6350+$4050 =$10400
Net Income will be (Y-10400), let say it x
IF(x<1,0,IF(AND((x>0),x<15000),x*10%,(x-10000)*15%+1000))