The Generic Function component computes an amount P with one of these three formulas:
P = A.X + B
P = A.X.Y + B
P = A.X + B.Y + C
Where:
A, B and C are numerical values expressed in the currency of the plan
X and Y are mathematical expressions which combine a numerical property, an operator, and a numerical value. For example, X = Duration multiplied by 5, or Y = Duration plus 10, in which Duration is a numerical property.
You can apply the following operations to the numerical properties:
Addition
Subtraction
Multiplication
Division
You use a Generic Function component when you want to calculate a price that uses numerical properties.
In a chargeable item class called “Video Conference”, you charge the customer $0.10 per videoconference minute. This price is multiplied by the number of members, and then added to a fixed amount of $15. To compute the price of a “Video Conference”, you use a Generic Function component according to the formula AXY + B, in which A, X, Y, and B have the following values:
|
A |
X |
Y |
B |
|
$0.10 |
Call duration property (in minutes) |
Number of members property |
$15 |
Name: Type the name of the component (mandatory).
Description: Allows you to type the description of the component (optional).
Type: Click one of the following formulas:
AX + B: If this option is selected, the Set the Y parameters area and the Money Amount C box are unavailable
AXY + B: If this option is selected, the Money Amount C box is unavailable
AX + BY + C: If this option is selected, all is available
Money Amount A: Type the value that represents A in the selected formula. This box is required: Type 1 if A = 1. The displayed currency is the currency of the plan.
Money Amount B: Type the value that represents B in the selected formula. This box is required: Type 0 if B = 0. The displayed currency is the currency of the plan.
Money Amount C: Type the value that represents C in the formula AX + BY + C. This box is required: Type 0 if C = 0. The displayed currency is the currency of the plan.
Set the X parameters: Allows you to define the calculation of X in the selected formula. This area is made up of three boxes. From left to right:
First box: Provides the list of numerical properties. Select a numerical property.
Second box: Provides the list of operators to be applied to the numerical property that you have selected. Select an operator. Selecting the -Operator- item in the list allows you to not apply an operation to the numerical property.
Third box: Once you have selected a property and an operator, type a numerical value. This box is required if you select an operator in the second box.
Set the Y parameters: Allows you to define the calculation of Y in the formulas AXY + B or AX + BY + C. Apply the same rules as in the Set the X parameters area.