4 <script src=
"tax.js"></script>
5 <script src=
"tax_ui.js"></script>
6 <!-- Tests are in tax.test.js -->
8 td { padding:
.5em; vertical-align: top}
9 textarea { height:
12em; }
11 .output { padding:
1em; background-color: #eee; border: thin solid #
888; width: max-content; }
12 .privacy_policy { margin-top:
5em; }
15 <body onload=
"calculate()">
16 <h1>Inverse income tax tool
</h1>
17 <p>What before-tax salary is needed to provide a specified after-tax salary?
</p>
23 Federal deductible
<br/><input id=
"deductible_1" value=
"24000" onchange=
"calculate()" oninput=
"calculate()"/>
26 State deductible
<br/><input id=
"deductible_2" value=
"8258" onchange=
"calculate()" oninput=
"calculate()"/>
31 Federal tax table
<br/>
32 <textarea id=
"tax_table_1" onchange=
"calculate()" oninput=
"calculate()"> 0 10
38 470001 39.6</textarea>
42 <textarea id=
"tax_table_2" onchange=
"calculate()" oninput=
"calculate()"> 0 1
51 1074996 13.3</textarea>
52 <br/>(Initial table is California's)
57 Desired after-tax salary
</br>
58 <input id=
"after_tax" value=
"100000" onchange=
"calculate()" oninput=
"calculate()">
64 <strong><span id=
"before_tax"></span> before tax
</strong>
65 -
<span id=
"tax_1"></span> federal tax
66 -
<span id=
"tax_2"></span> state tax
67 =
<span id=
"after_tax_verification"></span> after tax.
70 <p class=
"privacy_policy">Privacy policy: All calculations are client-side; no figures are sent to any server.
</p>