X-Git-Url: http://git.scottworley.com/inverse-tax/blobdiff_plain/59179b68f1956c4e6f2da806d34fd3cc2106a27b..899824d5cc5289a3b15b22898fce2e11d1f63660:/tax_ui.js?ds=sidebyside 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)); }