Compares Rate Condition

com.workbrain.app.ta.condition.ComparesRateCondition

The Compares Rate Condition compares any two rates with their ratios. These keywords are the recognized keywords:

  • BASE_RATE: Employee’s base rate as of the calculation date.
  • MINIMUM_WAGE: Represents the registry entry within Maintenance > System Administration > Registry Maintenance > system > WORKBRAIN_PARAMETERS. If this registry is not defined, minimum wage will be considered as 0.
  • STATE_MIN_WAGE: The minimum wage value that is specified in the STATE_MIN_WAGE table for the specified state as of the calculation date.

Parameters In

Name Type Description Example
CompareFromRate String Rate string for left operand BASE_RATE
CompareFromRatio Double Ratio to be applied to CompareFromRate (default is 1) 2
Operator String Operator for Comparison <
CompareToRate String Rate string for right operand MINIMUM_WAGE
CompareToRatio String Ratio to be applied to CompareFromRate (default is 1) 1.5

Example: Compare base rate to system-wide minimum wage

In this example, the condition compares the employee's base rate multiplied by 2 with the minimum wage that is specified in the MINIMUM_WAGE registry parameter.

Name Value
CompareFromRate BASE_RATE (10)
CompareFromRatio 2
Operator <=
CompareToRate MINIMUM_ WAGE (15)
CompareToRatio 1

The condition is not satisfied because the base rate multiplied by 2 ($20) is not less than or equal to the system-wide minimum wage ($15).

Example: Compare base rate to state minimum wage

In this example, the condition compares the employee's base rate with the current minimum wage for the state of California.

Name Value
CompareFromRate BASE_RATE (9.95)
CompareFromRatio 1
Operator <
CompareToRate STATE_MIN_WAGE=CALIFORNIA (9.00)
CompareToRatio 1

The condition is not satisfied because the base rate ($9.95) is not less than the minimum wage of California ($9.00).