salary = float(input()) # salary 应发工资薪金所得 five_one_insurance_fund = float(input()) # five_one_insurance_fund 五险一金 exemption = float(input(')) # exemption 个税免征额 #======================================================= # 补
时间: 2023-07-14 11:13:33 浏览: 233
充代码 # 计算个人所得税 taxable_income = salary - five_one_insurance_fund - exemption if taxable_income <= 0: # 若应纳税所得额小于等于0,则不需要缴纳个人所得税 personal_income_tax = 0 else: # 根据税率表计算个人所得税 if taxable_income <= 36000: personal_income_tax = taxable_income * 0.03 elif taxable_income <= 144000: personal_income_tax = taxable_income * 0.1 - 2520 elif taxable_income <= 300000: personal_income_tax = taxable_income * 0.2 - 16920 elif taxable_income <= 420000: personal_income_tax = taxable_income * 0.25 - 31920 elif taxable_income <= 660000: personal_income_tax = taxable_income * 0.3 - 52920 elif taxable_income <= 960000: personal_income_tax = taxable_income * 0.35 - 85920 else: personal_income_tax = taxable_income * 0.45 - 181920 # 实发工资 actual_salary = salary - five_one_insurance_fund - personal_income_tax # 输出结果 print('个人所得税:{:.2f}'.format(personal_income_tax)) print('实发工资:{:.2f}'.format(actual_salary))
阅读全文