Specifying Calculation Details

After specifying variables, you can specify calculation details.

To specify calculation details

  1. Navigate to the Administration - Application screen, and then the Calculation Manager view.

  2. Select a Rule Set for which you want to specify calculation details.

  3. In the Rules list, create a new record, and complete the fields described in the following table.

    Field Comments

    Sequence Number

    Sequence number for the rule execution.

    Expression

    Calculation expression. The expression is guided by the following:

    • Operator Support. All basic arithmetic operators, including exponents, are supported (+,-,*,/,^). Nested quantities (that is parentheses) are also supported.

    • Simple Calculations. Simple calculations, such as a+b=c, are defined in a single row.

    • Compound Calculations. Multiple rows of calculations specified in a single Template. This enables multiple variables to be calculated independently, and then used in subsequent calculations.

    • For-Next Logic. Simple looping enables the generation of arrays. Use a For statement and a Next statement to accomplish looping. Example:

      • row 1: For N=1 to Period,

      • row 2: [calculation]

      • row3: Next N

      For-Next loops might be nested.

    • If-Then-Else Logic. Simple If-Then-Else logic is supported declaratively. As in the case of For-Next, If-Then-Else statements appear on multiple rows of the calculation set. Nesting of If-Than-Else statements is supported.