从零开始python小案例003计算北京市个人所得税
2017-11-06 13:03
489 查看
【003个人所得税】
题目:给定北京市某人的个人的工资,计算个人所得税
方法:
题目:给定北京市某人的个人的工资,计算个人所得税
方法:
个人工资、薪金所得包括:工资、薪金、奖金、年终加薪、劳动分红、津贴、补贴,全年一次性奖金除外。个人工资薪金所得扣除3500元标准后,可按以下纳税范围税率计算个人所得税(个人获得的劳务报酬或者稿酬、个体工商户等其他形式的所得收入是另外的算法): 个人所得税=(当月工资薪金所得-3500-三险一金)×对应税率-速算扣除数 全月应纳税所得额 税率 速算扣除数(元) 全月应纳税额不超过1500元 3% 0 全月应纳税额超过1500元至4500元 10% 105 全月应纳税额超过4500元至9000元 20% 555 全月应纳税额超过9000元至35000元 25% 1005 全月应纳税额超过35000元至55000元 30% 2755 全月应纳税额超过55000元至80000元 35% 5505 全月应纳税额超过80000元 45% 13505
#python版本为3.6
#在上述方法中生育保险与工商保险由单位支付,不需要个人支付 #三险一金的上限为7662,纳税最低工资标准为为3500 #个人工资:personal salary(pSal) #个人所得税:individual income tax(iit) #养老保险:endowment insurance(endowIn) #医疗保险:medical insurance(medIn) #失业保险:unemployment insurance(unempIn) #住房公积金:housing fund(houFu)按12%计算 #三险一金:there social insurance and one housing fund(thereOne) print('---个人所得税计算器,按q退出---') while True: pSal = input('请输入个人税前总工资数额(元):') if pSal == 'q': break pSal = float(pSal) endowIn = pSal * 0.08 medIn = pSal * 0.02 unempIn = pSal * 0.002 houFu = pSal * 0.12 thereOne = endowIn + medIn + unempIn + houFu #print('三险一金:',thereOne) #应纳税所得额:taxable income(taxIn) if thereOne >= 7662: thereOne == 7662 taxIn = pSal - thereOne - 3500 iit = 0.0 if taxIn < 0: iit = 0.0 elif 0 < taxIn < 1500: iit = taxIn * 0.03 elif 1500 <= taxIn < 4500: iit = taxIn * 0.1 - 105 elif 4500 <= taxIn < 9000: iit = taxIn * 0.2 - 555 elif 9000 <= taxIn < 35000: iit = taxIn * 0.25 - 1005 elif 35000 <= taxIn < 55000: iit = taxIn * 0.3 - 2002 elif 55000 <= taxIn < 80000: iit = taxIn * 0.35 - 5505 elif taxIn >= 80000: iit = taxIn * 0.45 - 13505 print('应纳所得税税额为(元):',taxIn) print('应纳个人所得税为(元):',iit)
相关文章推荐
- Python 小案例 计算个人所得税
- 从零开始python案例004计算某日期为该年第几天
- 案例分析:个人所得税计算办法
- 分支-10. 计算个人所得税
- 如何计算个人所得税?可以参考的11个标准计算工资的步骤,不足之处请补充
- 实验博客1:1.个人所得税及税后计算。2.多分段函数计算。
- 个人所得税计算方法
- 个人所得税计算方法
- 第九章 计算个人所得税
- 年终奖(全年一次性奖金)的个人所得税计算方法
- 如何计算个人所得税?可以参考的11个标准计算工资的步骤,不足之处请补充
- 个人所得税计算,计算器.
- 个人所得税计算
- HTML5第十课时,计算个人所得税
- 个人所得税计算
- 从零开始学Python【2】--数值计算及正则表达式
- 第十周—C语言 个人所得税的计算
- 【Python】个人所得税
- 如何计算个人所得税?可以参考的11个标准计算工资的步骤,不足之处请补充
- 分支-10. 计算个人所得税(10)