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; }
10 textarea.small { height:
4em; }
12 .output { padding:
1em; background-color: #eee; border: thin solid #
888; width: max-content; }
13 .privacy_policy { margin-top:
5em; }
16 <body onload=
"calculate()">
17 <h1>Inverse income tax tool
</h1>
18 <p>What before-tax salary is needed to provide a specified after-tax salary?
</p>
24 Federal deductible
<br/><input id=
"deductible_1" value=
"27700" onchange=
"calculate()" oninput=
"calculate()"/>
27 State deductible
<br/><input id=
"deductible_2" value=
"10404" onchange=
"calculate()" oninput=
"calculate()"/>
32 Federal tax table
<br/>
33 <textarea id=
"tax_table_1" onchange=
"calculate()" oninput=
"calculate()"> 0 10
43 <textarea id=
"tax_table_2" onchange=
"calculate()" oninput=
"calculate()"> 0 1
51 1354550 12.3</textarea>
52 <br/>(Initial table is California's)
57 Social Security tax
<br/>
58 <textarea id=
"tax_table_3" class=
"small" onchange=
"calculate()" oninput=
"calculate()"> 0 6.2
63 <textarea id=
"tax_table_4" class=
"small" onchange=
"calculate()" oninput=
"calculate()"> 0 1.45
64 250000 2.35</textarea>
68 <textarea id=
"tax_table_5" class=
"small" onchange=
"calculate()" oninput=
"calculate()"> 0 0.427</textarea>
73 Desired after-tax salary
</br>
74 <input id=
"after_tax" value=
"100000" onchange=
"calculate()" oninput=
"calculate()">
80 <strong><span id=
"before_tax"></span> before tax
</strong>
81 -
<span id=
"tax_1"></span> federal tax
82 -
<span id=
"tax_2"></span> state tax
83 -
<span id=
"tax_3"></span> social security tax
84 -
<span id=
"tax_4"></span> medicare tax
85 -
<span id=
"tax_5"></span> business tax
86 =
<span id=
"after_tax_verification"></span> after tax.
89 <p class=
"privacy_policy">Privacy policy: All calculations are client-side; no figures are sent to any server.
</p>