X-Git-Url: http://git.scottworley.com/inverse-tax/blobdiff_plain/b442070b44917301d40c5a6cbf996898175908be..d0678fe5d5c229220e1b4e7e7cbd470b157c3261:/tax.js?ds=inline 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; } }