Home      Ask a Question      My Stuff      Help   
  
Accruals - Accruing Based on Hours Worked But Paid Out at the End of the Pay Period
With clients who have employees that accrue based in hours worked but only want the accruals to show up at the end of the pay period we would script the "accrueup" line normally as far as having it pay out based on hours worked with a change at the beginning and changing our hours from an hourly calculation to a total of hours worked in a week.

A normal accrueup script based on hours worked would look like the below:

accrueup("Personal", ((hours / 2080) * 240), 280, employee.startdate,"");

This reads accrue up "Personal" time based on the hours worked divided by the total amount 40 hours times the total weeks (52) in a year (40 * 52 = 2080), times the maximum yearly accrual of 240 hours, with a total year over year maximum accrual amount of 280, use able on the employees start date, with all amounts under the maximum able to carry over ("").

In our revised script though we want to have it calculate the same amount of hours but also do so AND pay out at the end of the pay period. To do this we would change "hours" in our first example to the keyword for this "reportingdate.pphours":

accrueup("Personal", ((reportingdate.pphours * 0.1154), 280, employee.startdate,"");

So with the above the "0.1154" is 240 (the yearly max) times 2080 (the total work hours in a year).

NOTE: You will want to have the above script in the lower accrue up box and NOT the upper where hourly accruals would normally go.



ID
1411
Category
>Support
  Accruals
Date Created
1/2/2015 10:16:16 AM
Date Updated
11/8/2018 12:38:58 PM
Back to Search Results