From 899824d5cc5289a3b15b22898fce2e11d1f63660 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 18 Aug 2023 00:00:56 -0700 Subject: [PATCH] Add Business Tax --- index.html | 7 ++++++- tax_ui.js | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) 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)); } -- 2.44.1