# your python code basic = input("What is the employee's basic salary?\n\n") allowances = input("\nWould you like to add allowances? [Enter 0 if NO]\n\n") gross = int(basic) + int(allowances) print(f"\nNow the Gross Salary = {gross}") ins_salary = input("\nWhat is the employee's insured salary?\n\n") #esic_max = 1199 #csic_max = 2043 #esic = int(ins_salary) * 0.11 #csic = int(ins_salary) * 0.1875 if int(ins_salary) >= 10900: print( f"\nSince the insured salary is greater than or equals 10900, so the employee's social insurance contribution and the company's social insurance contribution are calculated as below:\n\n Employee SIC = 1199\n Company SIC = 2043\n" ) esic = 1199 csic = 2043 else: print( f"\nSince the insured salary is less than the max threshold [i.e. 10900] , so the employee's social insurance contribution and the company's social insurance contribution are calculated as below:\n\n Employee SIC = {int(ins_salary) * 0.11}\n Company SIC = {int(ins_salary) * 0.1875}\n" ) esic = int(ins_salary) * 0.11 csic = int(ins_salary) * 0.1875 #personal_ex = 750 print(f"The Employee's TAXABLE income = {int(gross) - int(esic) - 750}\n\n") #Salary TAX tiers income = int(gross) - int(esic) - 750 if int(income) <= 1250: tax = int(income) * 0 elif int(income) <= 2500: tax = (int(income) - 1250) * 0.025 elif int(income) <= 3750: tax = ((int(income) - 2500) * 0.1) + 31.25 elif int(income) <= 5000: tax = ((int(income) - 3750) * 0.15) + 156.25 elif int(income) <= 16666.66: tax = ((int(income) - 5000) * 0.2) + 343.75 elif int(income) <= 33333.33: tax = ((int(income) - 16666.66) * 0.225) + 2677.08 elif int(income) <= 50000: tax = ((int(income) - 33333.33) * 0.25) + 6427.08 elif int(income) <= 58333.34: tax = ((int(income) - 33333.33) * 0.25) + 6458.33 elif int(income) <= 66666.67: tax = ((int(income) - 33333.33) * 0.25) + 6645.83 elif int(income) <= 75000: tax = ((int(income) - 33333.33) * 0.25) + 6833.33 elif int(income) <= 83333.34: tax = ((int(income) - 33333.33) * 0.25) + 7083.33 else: tax = ((int(income) - 33333.33) * 0.25) + 7500 print(f"The TAX amount = {int(tax)}") print(f"The Martyrs Box = {int(gross) * 0.0005}") martyrs = int(gross) * 0.0005 print(f"The Net Salary = {int(gross) - int(esic) - int(tax) - float(martyrs)}")