Refer to the following scenario to answer the question below.
You need to create an accrual that gives U.S. workers the following accrual rates:
Workers in California accrue 12 hours per period.
Workers in Illinois accrue 10 hours per period.
Workers in all other states accrue 8 hours per period.
What calculation type should you use to identify California and Illinois workers?
A Value Comparison Calculation can create the Boolean conditions that identify whether a worker's resolved work-state value equals California or Illinois. One comparison can test whether the work-state calculation equals California, and another can test whether it equals Illinois. These Boolean results are then referenced by the conditional calculation that returns the appropriate accrual rate.
A Lookup Calculation could return a value directly from a lookup table, but the stated solution separates the state-identification conditions from the calculation that specifies the accrual amounts. An Instance Value Calculation retrieves a value from a related instance but does not, by itself, evaluate whether that value matches California or Illinois. An Instance Set Comparison is principally used to compare a class report field or instance collection with user-selected instances; it is not the intended comparison when the worker's state has already been resolved into a calculation value.
The conditional accrual calculation should evaluate the California condition first, return 12 hours, then evaluate the Illinois condition and return 10 hours. Workers who meet neither condition receive the default response of eight hours.
Study Guide reference: Calculations for Time Off Plans -- Boolean and Value Comparison Calculations.
Currently there are no comments in this discussion, be the first to comment!