[ 'rate' => 4.25, 'allowance' => 5000, ], 20210101 => [ 'rate' => 4.25, 'allowance' => 4900, ], 20200101 => [ 'rate' => 4.25, 'allowance' => 4750, ], 20190101 => [ 'rate' => 4.25, 'allowance' => 4400, ], 20180101 => [ 'rate' => 4.25, 'allowance' => 4050, ], 20140101 => [ 'rate' => 4.25, 'allowance' => 4000, ], 20130101 => [ 'rate' => 4.25, 'allowance' => 3950, ], 20110101 => [ 'rate' => 4.35, 'allowance' => 3700, ], 20090101 => [ 'rate' => 4.35, 'allowance' => 3600, ], 20071001 => [ //01-Oct-07 'rate' => 4.35, 'allowance' => 3400, ], 20070101 => [ 'rate' => 3.9, 'allowance' => 3400, ], 20060101 => [ 'rate' => 3.9, 'allowance' => 3300, ], ]; var $state_ui_options = [ 20060101 => [ 'wage_base' => 9500, 'new_employer_rate' => 2.7 ], ]; function getStateAnnualTaxableIncome() { $annual_income = $this->getAnnualTaxableIncome(); $allowance = $this->getStateAllowanceAmount(); $income = bcsub( $annual_income, $allowance ); Debug::text( 'State Annual Taxable Income: ' . $income, __FILE__, __LINE__, __METHOD__, 10 ); return $income; } function getStateAllowanceAmount() { $retarr = $this->getDataFromRateArray( $this->getDate(), $this->state_options ); if ( $retarr == false ) { return false; } $allowance = $retarr['allowance']; $retval = bcmul( $this->getStateAllowance(), $allowance ); Debug::text( 'State Allowance Amount: ' . $retval, __FILE__, __LINE__, __METHOD__, 10 ); return $retval; } function _getStateTaxPayable() { $annual_income = $this->getStateAnnualTaxableIncome(); $retval = 0; if ( $annual_income > 0 ) { $retarr = $this->getDataFromRateArray( $this->getDate(), $this->state_options ); if ( $retarr == false ) { return false; } $rate = bcdiv( $retarr['rate'], 100 ); $retval = bcmul( $annual_income, $rate ); } if ( $retval < 0 ) { $retval = 0; } Debug::text( 'State Annual Tax Payable: ' . $retval, __FILE__, __LINE__, __METHOD__, 10 ); return $retval; } } ?>