Skip to content

Instantly share code, notes, and snippets.

@i3o
i3o / fedtax.js
Last active April 24, 2019 21:29 — forked from liath/fedtax.js
US Federal Income Tax calculator in javascript
// Weekly Employee Income Withholding Calculator by GitHub#Liath
// Based on IRS Circular E - http://www.irs.gov/pub/irs-pdf/p15.pdf
// Per the "Percentage Method"
var w = {
s : {
0 : { p : 0, s : 0 },
71 : { p: 0.10, s: 0 },
254 : { p: 0.12, s: 18.3 },
815 : { p: 0.22, s: 85.62 },
1658 : { p: 0.24, s: 271.08 },