A Calculation Rule with a Discount for Being on Autopay
Imagine a calculation rule that is only eligible if the current customer has signed up for Autopay. This calculation rule would need the following eligibility rule:
Customer has Autopay
This rule will look as follows:
Seq
Field to Compare
Comparison Method
If TRUE
If FALSE
If Insufficient Data
10
Algorithm: check if customer has Autopay
= Y
Apply Rule
Do Not Apply Rule
Do Not Apply Rule
The criterion calls an algorithm that performs a logical comparison.
The criterion works as follows:
Field to Compare. We chose a "field to compare" algorithm that checks if the account associated with the bill segment is on Autopay. If an autopay setup exists, then it returns a value of Y. If not, however, it returns N
Comparison Method and Results. We simply compare the value returned by the algorithm to Y and indicate the appropriate response. If the condition is true, the calculation rule is applied. If the condition is false or insufficient data, the calculation rule is skipped.
Note: 
Refer to CI_​CHK_​APAY for more information about this algorithm.