]> git.scottworley.com Git - inverse-tax/blobdiff - tax_ui.js
Add Business Tax
[inverse-tax] / tax_ui.js
index 1148f54246986fa27fe86d349f9d9a96af710e1a..d71de9fc36adfa167202de68820ee5e806a6ec47 100644 (file)
--- 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));
 }