X-Git-Url: http://git.scottworley.com/inverse-tax/blobdiff_plain/52ca3d7ffdc98f22fc82ba84bacf0db26da2edc1..272ad45ce0d6bd3fd425a02523e0b6b4feb47dee:/tax.js diff --git a/tax.js b/tax.js index f3d2406..2687387 100644 --- a/tax.js +++ b/tax.js @@ -58,7 +58,6 @@ function invert(table) { // for gross: // net - b = m * gross // (net - b) / m = gross - // and the calculate the inverse's bounds const ms = table.map(([start, end, rate]) => 1 - rate); const full_brackets = [0].concat(table.map(([start, end, rate]) => (end - start) * rate)).slice(0, table.length);