Previous Topic: The Chargeback Algorithm

Next Topic: Extended Charging Example


Calculation Logic

In the following section you see numerous examples of chargeback algorithms. However, it is critical that you understand the logic.

Note: As you can see from the examples below, you must present data to CA PMA Chargeback using linear or left-to-right order. This is because CA PMA Chargeback performs calculations in the order they are presented. That is:

Since CA PMA Chargeback performs calculations in the order they are presented and does not permit the use of parenthetical expressions (they are implied), you must present the algorithm in the sequence you want the calculations performed:

+--------------------------------------------------------+
|                      More: - + ____  Row 0001 of 0003  |
|  Cmd  ORD Field/@Unit   Aop  Field/Constant    Aop     |
|                                                        |     Operation   Result
|   _   2________________  *   3______________    +      |       6 +
|   _   6________________  /   6______________    -      |       6 + 1       7
|   _   1________________  _   _______________    _      |       7 - 1       6
|       _________________  _   _______________    _      |
|  +--------------------------------------------------------+
|  |                      More: - + ____  Row 0001 of 0004  |
|  |  Cmd  ORD Field/@Unit   Aop  Field/Constant    Aop     |
|  |                                                        |  Operation   Result
+--|   _   2_______________   *   3_______________   +      |    6 +
   |   _   6_______________   _   ________________   /      |    6          12
   |   _   6_______________   _   ________________   -      |   12 / 6       2
   |   _   1_______________   _   ________________          |    2 - 1       1
   |                                                        |
   +--------------------------------------------------------+