个人所得税

# encoding:utf-8
# -*- coding: gbk -*-
before=float(input("请输入你的税前工资:"))
m1=float(input('请输入社保扣除金额:'))
ss=0 #纳税金额
ys=before-m1-5000 #应纳税金额
if ys<=3000 and ys>0:
    ss=ys*0.03-0
elif ys>3000 and ys<=12000:
    ss=ys*0.1-210
elif ys>12000 and ys<=25000:
    ss=ys*0.2-1410
elif ys>25000 and ys<=35000:
    ss=ys*0.25-2660
elif ys>35000 and ys<=55000:
    ss=ys*0.3-4410
elif ys>55000 and ys<=80000:
    ss=ys*0.35-7160
elif ys>80000:
    ss=ys*0.45-15160
else:print("不需要纳税")
ds=before-ss-m1 #到手工资
print("你需要纳税的金额为:",ss,'元','到手工资为',ds,'元')
上一篇:微信音乐小程序实战(一):完成静态推荐歌曲页面的搭建


下一篇:从源码分析DEARGUI之checkbox