ACCA
New member
- Joined
- Feb 7, 2017
- Messages
- 23
- Reaction score
- 0
- Points
- 1
- Excel Version(s)
- excel 2007
I need VBA Codes for custom function (income tax) with following conditions:
Income tax=(S2-S1) * X
Where
S2 = Income at higher level
S2=income at lower level
X= Tax rate
If S1> 60000
and S2<1200000
THEN
Income tax=(S2-S1) * 0.05
IF S1>1,200,000
and S2<1,800,000
THEN
Income tax=(S2-S1) * 0.10+30000
IF S1>1800000
and S2<2500000
THEN
Income tax=(S2-S1) * 0.15+90000
IF S1>2500000
and S2<3500000
THEN
Income tax=(S2-S1) * 0.175+195000
Income tax=(S2-S1) * X
Where
S2 = Income at higher level
S2=income at lower level
X= Tax rate
If S1> 60000
and S2<1200000
THEN
Income tax=(S2-S1) * 0.05
IF S1>1,200,000
and S2<1,800,000
THEN
Income tax=(S2-S1) * 0.10+30000
IF S1>1800000
and S2<2500000
THEN
Income tax=(S2-S1) * 0.15+90000
IF S1>2500000
and S2<3500000
THEN
Income tax=(S2-S1) * 0.175+195000
Last edited: