1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors math math.order money kernel assocs ;
6 : fica-tax-rate ( -- x ) DECIMAL: .062 ; inline
8 ERROR: fica-base-unknown ;
10 : fica-base-rate ( year -- x )
15 } at [ fica-base-unknown ] unless* ;
17 : fica-tax ( salary w4 -- x )
18 year>> fica-base-rate min fica-tax-rate * ;