From: Scott Worley Date: Fri, 18 Aug 2023 07:00:56 +0000 (-0700) Subject: Add Business Tax X-Git-Tag: v1.1~1 X-Git-Url: http://git.scottworley.com/inverse-tax/commitdiff_plain/899824d5cc5289a3b15b22898fce2e11d1f63660?hp=59179b68f1956c4e6f2da806d34fd3cc2106a27b Add Business Tax --- diff --git a/index.html b/index.html index 6702ed3..b70a28f 100644 --- a/index.html +++ b/index.html @@ -63,9 +63,13 @@ Medicare tax
+ +Business tax
+ + - + Desired after-tax salary
@@ -78,6 +82,7 @@ Desired after-tax salary
- state tax - social security tax - medicare tax + - business tax = after tax.

diff --git a/tax_ui.js b/tax_ui.js index 1148f54..d71de9f 100644 --- a/tax_ui.js +++ b/tax_ui.js @@ -14,7 +14,8 @@ function calculate() { 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); @@ -27,5 +28,6 @@ function calculate() { 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)); }