Created
December 15, 2012 03:01
-
-
Save anonymous/4290993 to your computer and use it in GitHub Desktop.
The sad story of California taxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> def statetax(x): return .093 * x ... | |
>>> def fedtax(x): return (0.1*(8700) + 0.15*(35350 - 8701) + 0.25*(85650 - 35351) + 0.28*(x - 85651)) | |
>>> def tax(x): print "fedtax:" + str(fedtax(x)); print "statetax: " + str(statetax(x)); return (fedtax(x) + statetax(x)); | |
>>> def moneyleft(x): return (x - tax(x))... | |
>>> def moneylost(x): return tax(x) | |
>>> def thisissosad(x): return moneylost(x) | |
>>> income = 100000 | |
>>> thisissosad(income) | |
fedtax:21459.82 | |
statetax: 9300.0 | |
30759.82 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment