Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #/home/clockworkpcasus/Documents/bin/weeklyTax.py
- # Released under a GPLv3 Licence by Clockwork PC 2011
- #
- # www.clockworkpc.com.au
- #
- # You are entitled to the following four freedoms:
- # Freedom 0: To run this program for any purpose
- # Freedom 1: To study how this program works and change it to make it do what you wish
- # Freedom 2: To redistribute copies so you can help your neighbour
- # Freedom 3: To distribute copies of your modified version to others
- weeklyPay = int(input("How much do you earn per week? "))
- annualPay = weeklyPay * 52
- if 0 < annualPay <= 6000:
- annualIncomeTax = 0
- elif 6000 < annualPay <= 37000:
- annualIncomeTax = (annualPay - 6000)*0.15
- elif 37000 < annualPay <= 80000:
- annualIncomeTax = 4650 + (0.3 * (annualPay - 37000))
- elif 80000 < annualPay <= 180000:
- annualIncomeTax = 17550 + (0.37 * (annualPay - 80000))
- elif annualPay > 180000:
- annualIncomeTax = 54550 + (0.45 * (annualPay - 180000))
- else:
- print "Something has gone wrong"
- weeklyTax = (annualIncomeTax / 52)
- print "Your weekly pay is",weeklyPay
- print "Your annual income is",annualPay
- print "Your annual income tax is",annualIncomeTax
- print "Your weekly tax is",weeklyTax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement