Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2012 03:01
Show Gist options
  • Save anonymous/4290993 to your computer and use it in GitHub Desktop.
Save anonymous/4290993 to your computer and use it in GitHub Desktop.
The sad story of California taxes
>>> 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