able>
<p>To calculate the income tax for a given income find the next lowest value in the <code>Lower bracket</code> column, then add the tax payable and difference between the lower bracket value and the income multiplied by the marginal rate. Originally, we implemented it like this:</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1"></a>income &lt;-<span class="st"> </span><span class="fl">50e3</span></span>
<span id="cb3-2"><a href=