title: Cummulative Tax Calculator
body: <p>I'm trying to create a calculator to calculate taxes. I already have an input asking whether they are single, married, etc. and how much they earn. I have already calculated which bracket they fall into. What I am having trouble with is the cumulative percentages. Y'know, 'the first 9,325 of your salary is 10%, the next 37,950 is 15%' etc.. I'm trying to use a</p>
  
  <pre><code>for income in range(0, 9325):
  </code></pre>
  
  <p>But if you put in, say 9326, it will jump to the next bracket. Anyway, this is my current code (well, the main function of it. You can find the whole thing at <a href="https://repl.it/@Sphelix/FlusteredClumsyDemo" rel="nofollow noreferrer">https://repl.it/@Sphelix/FlusteredClumsyDemo</a> ):</p>
  
  <pre><code>if thing == "1" and income &lt;= 9325:
   print("Your tax rate is 10%")
  elif thing == "1" and income &lt;= 37950:
   print("Your tax rate is 15%")
  elif thing == "1" and income &lt;= 191650:
   print("Your income is 28%")
  elif thing == "1" and income &lt;= 416700:
   print("Your tax rate is 33%")
  elif thing == "1" and income &lt;= 418000:
   print("Your tax rate is 35%")
  elif thing == "1" and income &gt;= 418001:
   print("Your tax rate is 39.6%")
  </code></pre>