Site icon Matistics

Python – program to calculate the NET Salary of an Employee based on the given Tax Rates & terms

SalaryTax
< 22000 NIL
22001 – 3000020% of income
30001 – 50000 1600 + 25 % of income
50001 – 750006600 + 40 % of income
> 75000 16600 + 50 % of income
a=int(input("Enter the salary of the employee: "))
if a<22000:
    net = a
elif 22001<a<30000:
    net=a-a*0.2
elif 30001<50000:
    net=a-(1600+a*0.25)
elif 50000<a<75000:
    net=a-(6600+a*0.4)
elif a>75000:
    net=a-(16600+a*0.5)
print("Net salary of the employee is: ", net)

Exit mobile version