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

SalaryTax
< 22000NIL
22001 – 3000020% of income
30001 – 500001600 + 25 % of income
50001 – 750006600 + 40 % of income
> 7500016600 + 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)

Scroll to Top
logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.