Building a Cost Calculation
A user with the Profile Rules Admin permission can set up a Profile Rule that calculates a date or cost in a Contract, Company, or Project Profile screen or an additional form using the Formula Editor window. A Profile Rules Admin builds a cost formula using one or more fields in a Profile screen or an additional form, along with math and precedence operators that identify the relationships between the fields. Static values can also be added to a formula if a constant needs to be applied to the calculation. In building a complex formula, precedence operators, which are denoted by parenthesis are used to encase the fields whose calculation must be performed before other components of the formula are calculated.
The fields used to build the cost formula must be required in order to produce an accurate calculation. Therefore, a Profile Rules Admin must ensure the fields in the Company, Contract, or Project Profile screen that are used in their formula are required fields. If the formula uses an additional field in a Company, Contract, or Project Profile screen, or a field in an additional form captured in a Profile, these profile and additional form fields must also be designated as required.
There are four Math operators that can be used in a formula: Add ( + ), Subtract ( – ), Multiply ( * ), and Divide ( / ).
A Project Team is regularly assembled to test the current version of a software package before it is released to customers. The team includes a variable number of employees from Quality Assurance (QA), Development (DEV), and Customer Service (CS). A cost calculation is run for every release to determine the cost of testing based on the number of employees and the time spent in testing. Therefore an additional project form was created to track the data, and a Profile Rule was created for the additional form.