title: C# income tax calculator
body: <p>I have 3 text boxes for different rates of income tax</p>
  
  <pre><code>20%
  40%
  45%
  </code></pre>
  
  <p>So Between </p>
  
  <pre><code>£11,000 - £43,000   20%
  £43,001 - £150,000  40%
  150,000+            45%
  </code></pre>
  
  <p>So to calculate the tax between £11,000 and £43,000 I have written an if statement</p>
  
  <pre><code>if(Salary &gt; decimal.Parse(noTaxThreshold) &amp;&amp; Salary &lt;= decimal.Parse(pc20TaxLimit))
              {
                  taxableIncome = Salary - decimal.Parse(noTaxThreshold);
                  annualTax = taxableIncome * decimal.Parse(lowerTaxPc);
                  tbATax.Text = annualTax.ToString();
              }
              else
              {
                  tbANetPay.Text = tbAGrossPay.Text;
                  tbATax.Text = "0.00";
              }
  </code></pre>
  
  <p>How would I go about figuring out the other amounts for example if the pay was £200,000 per year, then this would have 3 different rates of income tax.</p>