Home      Ask a Question      My Stuff      Help   
  
TimeWorks Plus: Paid Breaks based Total Hours in the Day
Only the "PayRateScript" Processing Rule can pay employees paid breaks/lunches based on the amount of time worked over a series of punches as long as those punches happened on a single date/day by using the keyword of reportingdate.totalhours.

Below is an example. The example has three scripts that:

1. Calculates one 15 minute paid break if they worked less than 2 hours applied to the last punch of the day.
2. Calculates two 15 minute paid breaks (30 minutes paid) if they work MORE than 2 hours but LESS than 6 hours applied to the last punch of the day.
3. Calculates two 15 minute paid breaks (30 minutes paid) and one 30 minute paid lunch if they work MORE than 6 hours in a day applied to the last punch of the day.

//ONE 15 MIN PAID BREAK//

if (reportingdate.totalhours <= 2 AND islasttoday)
{
hours = hours + .25;
addalert ("15 Minute Break");
}

//2ND 15 MIN PAID BREAK (PAYS BACK 30 MINUTES)//

if (reportingdate.totalhours > 2 AND reportingdate.totalhours < 6 AND islasttoday)
{
hours = hours + .50;
addalert ("2nd 15 Minute Break");
}

//TWO 15 MIN BREAKS AND ONE 30 MIN LUNCH PAID (PAYS BACK 1 HOUR)//

if (reportingdate.totalhours > 6 AND islasttoday)
{
hours = hours + 1;
addalert ("2 15 Minute Breaks and 30 min Lunch");
}

As written this will not increase the amounts as it progresses meaning if they worked over 6 hours it will not add back 15 + 30 + 60 for a total of 1 hour and 45 minutes. As it progresses it will simply cancel out the smaller hour increment (2, 4, or 6). So the most anyone would get would by 1 hour if they worked more than 6 hours using this example.

There is still the issue also for shifts crossing midnight to where if the punch originates before midnight but the OUT punch happens after midnight on the next day all hours will still be assigned to the date the IN punch was generated. In cases like this using a split (usually at midnight) can help to separate the punches so that the calculations can be correct.

ID
813
Category
Training
  FAQ's
Date Created
1/24/2013 10:35:43 AM
Date Updated
8/13/2014 1:55:55 PM
Back to Search Results