最近综合所得年度汇算,正好心血来潮算一下到手工资对不对,有些朋友年综合收入也才几万块,结果年综报税时还要补一两万的个税,这主要是因为跳槽后,上家公司的年薪全平均移到了新的公司每个月中,系统的缺陷导致认为你的工资超高,所以就需要补税。
1、个税政策
2、输入工资,五险一金,专项扣除后得出个税和到手工资的python代码如下(个人能力有限只会按简单套路编写代码):
# 个税,到手工资计算
salary0 = float(input("请输入税前工资:"))
social_security = float(input("请输入五险一金总计:"))
special_additional_deductions = float(input("请输入专项附加扣除金额:"))
salary = salary0 - social_security - special_additional_deductions
salary1 = salary0 - social_security
if salary < 5000:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
(0, salary))
elif 5000 < salary <= 8000:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
((salary-5000)*0.03, salary1-((salary-5000)*0.03)))
elif 8000 < salary <= 17000:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
(90+(salary-8000)*0.1, salary1-(90+(salary-8000)*0.1)))
elif 17000 < salary <= 30000:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
(990+(salary-17000)*0.2, salary1-(990+(salary-17000)*0.2)))
elif 30000 < salary <= 40000:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
(990+2600+(salary-30000)*0.25, salary1-(990+2600+(salary-30000)*0.25)))
elif 40000 < salary <= 60000:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
(990+2600+2500+(salary-40000)*0.3, salary1-(990+2600+2500+(salary-40000)*0.3)))
elif 60000 < salary <= 85000:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
(990+2600+2500+6000+(salary-60000)*0.35, salary1-(990+2600+2500+6000+(salary-60000)*0.35)))
else:
print("你要交税:{:.2f}元, 到手工资:{:.2f}元".format
(990+2600+2500+6000+8750+(salary-85000)*0.45, salary1-(990+2600+2500+6000+8750+(salary-85000)*0.45)))
3、输出结果: