Advertisement
clockworkpc

Australian Income Tax Calculator 2011-2012

Aug 5th, 2011
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.20 KB | None | 0 0
  1. #!/usr/bin/python
  2. #/home/clockworkpcasus/Documents/bin/weeklyTax.py
  3.  
  4. # Released under a GPLv3 Licence by Clockwork PC 2011  
  5. #
  6. # www.clockworkpc.com.au
  7. #
  8. # You are entitled to the following four freedoms:
  9. # Freedom 0: To run this program for any purpose
  10. # Freedom 1: To study how this program works and change it to make it do what you wish
  11. # Freedom 2: To redistribute copies so you can help your neighbour
  12. # Freedom 3: To distribute copies of your modified version to others
  13.  
  14. weeklyPay = int(input("How much do you earn per week? "))
  15. annualPay = weeklyPay * 52
  16.  
  17. if 0 < annualPay <= 6000:
  18.   annualIncomeTax = 0
  19. elif 6000 < annualPay <= 37000:
  20.   annualIncomeTax = (annualPay - 6000)*0.15
  21. elif 37000 < annualPay <= 80000:
  22.   annualIncomeTax = 4650 + (0.3 * (annualPay - 37000))
  23. elif 80000 < annualPay <= 180000:
  24.   annualIncomeTax = 17550 + (0.37 * (annualPay - 80000))
  25. elif annualPay > 180000:
  26.   annualIncomeTax = 54550 + (0.45 * (annualPay - 180000))
  27. else:
  28.   print "Something has gone wrong"
  29.  
  30. weeklyTax = (annualIncomeTax / 52)
  31.  
  32. print "Your weekly pay is",weeklyPay
  33. print "Your annual income is",annualPay
  34. print "Your annual income tax is",annualIncomeTax
  35. print "Your weekly tax is",weeklyTax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement