[ 'rate' => 3.07, ], ]; var $state_ui_options = [ 20060101 => [ 'wage_base' => 10000, 'new_employer_rate' => 3.689 ], ]; function getStateAnnualTaxableIncome() { $annual_income = $this->getAnnualTaxableIncome(); Debug::text( 'State Annual Taxable Income: ' . $annual_income, __FILE__, __LINE__, __METHOD__, 10 ); return $annual_income; } 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; } } ?>