{//% unless portal.user.is_agent %} Tickets
Welcome
Login Submit a Ticket News {//% endunless %}

Cost Formula

You can access the Cost Formula through this button:


The Cost Formula area appears.


Enter the formulas manually or use the predefined symbol/calculations buttons:


In the (master-detail) dialog, the user can define formulas that shall be used during calculations. These formulas are "predefined" formulas that can be selected in the Cost Wizard dialog. You do not need to enter the formula again (but can select the desired one).


Field
Description
NameEnter the name of the Cost Formula. This field is mandatory.
CommentThis field is visible in the Cost wizard dialog to help the user to select the desired formula from the list.
ExpressionThe real formula that shall be used for the calculation of the costs.


Expression in detail

Expression is a "reduced" mathematical expression/formula that can be built using:

  • Brackets - "("operating bracket),")" (closing bracket)
  • Numerical constants - i.e. 1, 2, 3, 15, 9.4579
  • Simple Mathematical operators - +, -, /, *
  • "Cost definition" name - i.e. Fuel.


Correct expression examples

Fuel

2 * Fuel

(Fuel + TakeOff) * 2

(3 * 1.4) + 17 * Fuel - 3 * (5 + TakeOff)

 

Incorrect expression examples

a

x * y

{[(3 + 2) - (1 * 2)] * 4} + 5

2 * [Fuel]

([Fuel] + [TakeOff]) * 2


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.