[ [ 'income' => 31984, 'rate' => 9.8, 'constant' => 0 ], [ 'income' => 63969, 'rate' => 13.8, 'constant' => 1279 ], [ 'income' => 63969, 'rate' => 16.7, 'constant' => 3134 ], ], 20070101 => [ [ 'income' => 30754, 'rate' => 9.8, 'constant' => 0 ], [ 'income' => 61509, 'rate' => 13.8, 'constant' => 1230 ], [ 'income' => 61509, 'rate' => 16.7, 'constant' => 3014 ], ], ]; function getProvincialSurtax() { /* V1 = For PEI Where T4 <= 12500 V1 = 0 Where T4 > 12500 V1 = 0.10 * ( T4 - 12500 ) */ $T4 = $this->getProvincialBasicTax(); $V1 = 0; if ( $this->getDate() >= 20080101 ) { if ( $T4 <= 12500 ) { $V1 = 0; } else if ( $T4 > 12500 ) { $V1 = bcmul( 0.10, bcsub( $T4, 12500 ) ); } } Debug::text( 'V1: ' . $V1, __FILE__, __LINE__, __METHOD__, 10 ); return $V1; } } ?>