Compare Total Hours to Period Maximum Limit
The WFM_PERIOD_MAXIMUM_TIME_ENTRY_RULE formula is associated with the delivered Period Maximum Hours Template rule template.
The fast formula compares the total daily or period hours identified by the time category with the defined maximum limit. If the total hours are greater than the maximum limit, the defined message appears. If no message is defined, the default message appears. The message severity is an output value associated with the displayed message.
Parameters
| Name | Data Type | Description |
|---|---|---|
| DEFINED_LIMIT | Fixed number | Maximum total hours expected for the day or time card period |
| MESSAGE_CODE | Message | Message that appears when the total hours for the day or time card period exceed the defined maximum limit |
| WORKED_TIME_CONDITION | Time category | Time category that identifies the reported time entries to total for the day or time card period and compare with the defined maximum limit |
Output
| Name | Message Severity |
|---|---|
| OUT_MSG | Specify whether the output message is informational, warning, or error |
Examples
Example 1: You created a rule with your template that has a daily maximum of 8 hours and the time category All Payroll Time Types.
| Day | Payroll Time Type | Reported Time | Output |
|---|---|---|---|
| Mon thru Wed | Regular | 8h | None |
| Thu | Regular | 6h | None |
| Jury Duty | 4h | The message appears because the daily total of payroll hours exceeds the maximum limit of 8. | |
| Fri | Regular | 8h | None |
Example 2: You created a rule with your template that has a weekly maximum of 40 hours and the time category All Payroll Time Types.
| Day | Payroll Time Type | Reported Time | Output |
|---|---|---|---|
| Mon thru Wed | Regular | 8h | None |
| Thu | Regular | 6h | None |
| Jury Duty | 4h | None | |
| Fri | Regular | 8h | The message appears because the weekly total of payroll hours exceeds the maximum limit of 40. |