X-Git-Url: http://git.scottworley.com/inverse-tax/blobdiff_plain/b442070b44917301d40c5a6cbf996898175908be..68251a4c105d8c693061b044d45468184232f35c:/tax.js diff --git a/tax.js b/tax.js index cd0027a..f3d2406 100644 --- a/tax.js +++ b/tax.js @@ -84,7 +84,7 @@ function invert(table) { }); return function(net) { for (const [start, end, m, b] of inverse_table) { - if (start < net && net < end) { + if (start <= net && net <= end) { return (net - b) / m; } }