北京个税计算小程序

 
#北京计算个人所得税
total_income = int(input("请输入你的总收入:"))
endownment_insurance = total_income * 0.08
medical_insurance = total_income * 0.02
unemployment_insurance =    total_income * 0.002
housing_provident_fund =    total_income * 0.12
earned_income = total_income - endownment_insurance - medical_insurance -unemployment_insurance - housing_provident_fund
tax_payable = earned_income - 3500
print("个人缴纳五险一金:", total_income * 0.222)
if tax_payable <= 1500:
    tax = tax_payable * 0.03
    print("个人所得税:",tax)
elif tax_payable <=4500:
    tax = (tax_payable + 105) * 0.1
    print("个人所得税:",tax)
elif tax_payable <=9000:
    tax = (tax_payable + 555) * 0.2
    print("个人所得税:",tax)
elif tax_payable <=35000:
    tax = (tax_payable + 1005) * 0.25
    print("个人所得税:",tax)
elif tax_payable <=55000:
    tax = (tax_payable + 2755) * 0.3
    print("个人所得税:",tax)
elif tax_payable <=80000:
    tax = (tax_payable + 5505) * 0.35
    print("个人所得税:",tax)
else:
    tax = (tax_payable - 13505) * 0.45
    print("个人所得税:",tax)
income = total_income - endownment_insurance - medical_insurance - unemployment_insurance - housing_provident_fund - tax
print("实际收入:", income)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值