<textarea id="tax_table_4" class="small" onchange="calculate()" oninput="calculate()"> 0 1.45
250000 2.35</textarea>
</td>
+<td>
+Business tax<br/>
+<textarea id="tax_table_5" class="small" onchange="calculate()" oninput="calculate()"> 0 0.427</textarea>
+</td>
</tr>
<tr>
-<td colspan="2">
+<td colspan="3">
Desired after-tax salary</br>
<input id="after_tax" value="100000" onchange="calculate()" oninput="calculate()">
</td></tr>
- <span id="tax_2"></span> state tax
- <span id="tax_3"></span> social security tax
- <span id="tax_4"></span> medicare tax
+ - <span id="tax_5"></span> business tax
= <span id="after_tax_verification"></span> after tax.
</p>
load_tax_table('tax_table_1', 'deductible_1'),
load_tax_table('tax_table_2', 'deductible_2'),
load_tax_table('tax_table_3'),
- load_tax_table('tax_table_4')
+ load_tax_table('tax_table_4'),
+ load_tax_table('tax_table_5')
];
const after_tax = parseFloat(document.getElementById('after_tax').value);
document.getElementById('tax_2').textContent = format_number(taxes[1]);
document.getElementById('tax_3').textContent = format_number(taxes[2]);
document.getElementById('tax_4').textContent = format_number(taxes[3]);
+ document.getElementById('tax_5').textContent = format_number(taxes[4]);
document.getElementById('after_tax_verification').textContent = format_number(before_tax - sum(taxes));
}