How sum of good minutes works

Full class name: com.workbrain.app.modules.entitlements.SumOfGoodMinutes

This accrual ratio is used in conjunction with the Units to Apply value to determine the accrual amount. For accruals to be given as a percentage of time worked, the Units to Apply field can be used to specify the ratio of awardworkedTime as a numeric value, such as 0.025 (1/40). The custom ratio returns the workedTime value for the period being evaluated.

This diagram shows the sum of good minutes process flow:



This table shows the details of the process flow:

ID Name Description
RTO-001 Determine Accrual Period The same programmatic logic that is used by the core Good Function class to determine if a person has worked X units over the last accrual period is used to retrieve the work details for that accrual period.
RTO-002 Sum All Good Time Codes Minutes For the period being evaluated (as per RTO-001), sum all of the work detail minutes for those time codes that are listed in the Good Times Codes field for the accrual detail.
RTO-003 Return the Summed Value The calculated sum value is returned. When multiplied by the Units To Apply value, the end result is an accrual that is based on the employee's worked time over the accrual period.