#!/usr/bin/python
import sys
def CalSalary(base, day):
#House accumulation salary 0.1
#Social insurance 0.08
#Unemployment insurance 0.01
#Medical insurance 0.02
#Serious illness 10
CutSal = 15000*0.1+15000*(0.08+0.02+0.01)+10
# print"base =%f"%float(base)
# print"CutSal =%f"%float(CutSal)
OverSal = float(day)*(float(base)*1.0/21.75)*2
# print "OverSal %f Yuan"%OverSal
PreTaxSum =float(OverSal)+float(base)-float(CutSal)
print "PreTax %f Yuan"%PreTaxSum
if ((PreTaxSum >= 9000) and (PreTaxSum <= 35000)):
TaxRate = 25
else:
print "Not Support now."
sys.exit(0)
PayTax = (PreTaxSum-3500)*0.01*25 - 1005
import sys
def CalSalary(base, day):
#House accumulation salary 0.1
#Social insurance 0.08
#Unemployment insurance 0.01
#Medical insurance 0.02
#Serious illness 10
CutSal = 15000*0.1+15000*(0.08+0.02+0.01)+10
# print"base =%f"%float(base)
# print"CutSal =%f"%float(CutSal)
OverSal = float(day)*(float(base)*1.0/21.75)*2
# print "OverSal %f Yuan"%OverSal
PreTaxSum =float(OverSal)+float(base)-float(CutSal)
print "PreTax %f Yuan"%PreTaxSum
if ((PreTaxSum >= 9000) and (PreTaxSum <= 35000)):
TaxRate = 25
else:
print "Not Support now."
sys.exit(0)
PayTax = (PreTaxSum-3500)*0.01*25 - 1005
print "PayTax %f yuan"%PayTax
GetSal = float(PreTaxSum) - float(PayTax)
print "You should get about %f Yuan this month."%float(GetSal)
#input your base salay
BaseSalay = raw_input("Input your base salay :")
OverDay = raw_input("Input your overtime Day :")
CalSalary(BaseSalay, OverDay)
GetSal = float(PreTaxSum) - float(PayTax)
print "You should get about %f Yuan this month."%float(GetSal)
#input your base salay
BaseSalay = raw_input("Input your base salay :")
OverDay = raw_input("Input your overtime Day :")
CalSalary(BaseSalay, OverDay)