1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel math money taxes.usa taxes.usa.w4 usa-cities ;
7 : mn-single ( -- triples )
10 { 1950 23750 DECIMAL: .0535 }
11 { 23750 73540 DECIMAL: .0705 }
12 { 73540 1/0. DECIMAL: .0785 }
15 : mn-married ( -- triples )
18 { 7400 39260 DECIMAL: .0535 }
19 { 39260 133980 DECIMAL: .0705 }
20 { 133980 1/0. DECIMAL: .0785 }
24 MN mn-single mn-married <tax-table> ;
26 M: MN adjust-allowances* ( salary w4 collector entity -- newsalary )
27 2drop calculate-w4-allowances - ;
29 M: MN withholding* ( salary w4 collector entity -- x )
31 [ adjust-allowances ] 2keep marriage-table tax ;