Maryland State Tax Calculation

Topics brought up by the TimeTrex open source community.
Locked
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Maryland State Tax Calculation

Post by rons »

I have set up some sample employees for testing and assigned Province/State Tax along with federal withholding, unemployment, etc. When I calculate their pay, there is no deduction for Maryland State taxes but all the other deductions appear. How do I fix this.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

I believe Maryland has separate rates per county, so you need to use the District/County Formula instead of the State Formula.
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Post by rons »

I added the district formula as 7.83% to reflect both the Maryland rate and local Baltimore County rate and set it to apply to all active employees. I recalculated their pay and the district deduction still does not appear in the pay stub.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Our developers informed me that this is a bug with the Maryland taxes, the percentage isn't getting to the tax formula engine so TimeTrex thinks its 0% and thus not calculating anything.

If you edit classes/modules/users/UserDeductionFactory.class.php around line: 850

You should see:

Code: Select all

				$pd_obj = new PayrollDeduction( $this->getCompanyDeductionObject()->getCountry(), $this->getCompanyDeductionObject()->getProvince(), $this->getCompanyDeductionObject()->getDistrict() );
				$pd_obj->setDate( $pay_period_obj->getTransactionDate() );
				$pd_obj->setAnnualPayPeriods( $annual_pay_periods );

				$pd_obj->setDistrictFilingStatus( $user_value1 );
				$pd_obj->setDistrictAllowance( $user_value2 );

				$pd_obj->setGrossPayPeriodIncome( $amount );
Add the following 3 lines right above: $pd_obj->setGrossPayPeriodIncome()

Code: Select all

				$pd_obj->setUserValue1( $user_value1 );
				$pd_obj->setUserValue2( $user_value2 );
				$pd_obj->setUserValue3( $user_value3 );
The final result should look like this:

Code: Select all

				$pd_obj = new PayrollDeduction( $this->getCompanyDeductionObject()->getCountry(), $this->getCompanyDeductionObject()->getProvince(), $this->getCompanyDeductionObject()->getDistrict() );
				$pd_obj->setDate( $pay_period_obj->getTransactionDate() );
				$pd_obj->setAnnualPayPeriods( $annual_pay_periods );

				$pd_obj->setDistrictFilingStatus( $user_value1 );
				$pd_obj->setDistrictAllowance( $user_value2 );

				$pd_obj->setUserValue1( $user_value1 );
				$pd_obj->setUserValue2( $user_value2 );
				$pd_obj->setUserValue3( $user_value3 );

				$pd_obj->setGrossPayPeriodIncome( $amount );
That should get you going until the next version of TimeTrex is released.
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Post by rons »

After applying the changes to the file and re-calculating the pay stubs for the test employees, the District tax is still not appearing on the stub and not deducted from gross pay.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Is it possible to provide us with a screen shot of the Tax/Deduction Edit page with all the settings options expanded?
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Post by rons »

I will email the screen shot since I can not figure out how to post it here.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

The screenshot shows that you do not have any included pay stub accounts in the tax deduction. So TimeTrex doesn't know what to calculate the 7.8% on.

Please see section 2.8 of the Administrator Guide for more information.
rons
Posts: 52
Joined: Fri Jul 06, 2007 11:24 am

Post by rons »

Thanks, that worked.
Locked