admin 管理员组

文章数量: 887007

个人税务计算

个人税务计算

def ex(sum):#附加减额b=int(input("父母是否在世?(一方:1;两方:2;无:0)"))if 2>=b>0:a=int(input("父母大于60岁?(一方:1;两方:2;无:0)"))if(2>=a>0):e=int(input("是否是独生子女?是:1;否:输入兄弟姐妹数:"))if(e==1):sum=a*1000else:sum=(a*1000)/eelse:sum=0else:sum=0c=input("孩子的数量:")sum+=int(c)d=input("是否有租房:(y/n)")if d=='y':sum+=1000sum*=12return sumdef taxifin(taxi):# 应交税费if Taxable<=36000:taxi=Taxable*0.03elif 144000<=Taxable<36000:taxi = Taxable*0.1-2520elif 300000<=Taxable<144000:taxi = Taxable*0.2-16920elif 420000<=Taxable<300000:taxi = Taxable*0.25-31920elif 660000<=Taxable<420000:taxi = Taxable*0.3-52920elif 960000<=Taxable<660000:taxi = Taxable*0.35-85920else:taxi = Taxable * 0.45 - 181920return taxisalary = int(input("请输入你的年收入:"))
insurance = salary*0.12
Provident_Fund = salary*0.12
extra_income = int(input("请输入你的劳务年收入(除主业外):"))
Exemption=60000#应纳税所得额
cc=ex(0)
Taxable=salary-insurance-Provident_Fund+extra_income-Exemption-cc#实际到手
dd=taxifin(0)
sums=salary-insurance-Provident_Fund-dd+extra_incomeprint("--------------"+"\n"+"年收入:{}".format(salary)+"\n"+"保险:{}".format(insurance)+"\n"+"公积金:{}".format(Provident_Fund)+"\n"+"劳务年收入:{}".format(extra_income)+"\n"+"免征额:{}".format(Exemption)+"\n"+"附加减额:{}".format(cc)+"\n"+"应纳税所得额:{}".format(Taxable)+"\n"+"应交税费:{}".format(dd)+"\n"+"\n"+"↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓"+"\n"+"实际到手:{}".format(sums)+"\n"+"--------------")

本文标签: 个人税务计算