Budgeting
You know every field that accepts a variable, which variables each field takes and when a variable saves you work.
In some budget fields, you can enter a variable instead of a fixed number. When the value of the variable changes, KOSMA recalculates every field that uses it. If you have not defined a variable yet, see [what variables are](/kb/article/what-variables-are).
Every field in this table accepts your own variables and work-phase variables. The subtotals `NPC`, `DFFF` and `GT` (listed under **Subtotals** in **Variables**) and the [budget functions](/kb/article/budget-functions-reference) work only where the table names them. `GT` works only in a variable, because the grand total includes the markups.
| Where | Field | Subtotals | Functions | | ------------------------------------------------ | ----------------------------------------------- | ------------------- | ----------------------------------------------------------------- | | Account or subaccount | **Quantity**, **Price/Unit**, **X** | none | `ACCOUNT`, `SUM_COMPANY`, `SUM_TAG`, `COUNT_COMPANY`, `COUNT_TAG` | | Markup in **Overview/Markups** | **Base** | `NPC`, `DFFF` | the same five | | **Fringes & Supplements** in the account details | the **Factor** of a supplement | `NPC`, `DFFF` | none | | **Extra Costs** in the account details | **Factor** | `DFFF` | none | | The **Extra Costs** settings | **Quantity**, **Price** | `DFFF` | none | | **Variables** | the **Calculation Formula** of another variable | `NPC`, `DFFF`, `GT` | the same five |
Every other field takes numbers only. The exception is **Timebase (days) for fringe limits** in **Fringes & Supplements**, which also takes the functions `ACCOUNT_QTY` and `SUBACCOUNT_QTY` (see [use quantities in formulas](/kb/article/use-quantities-in-formulas)).
A variable uses account totals when its **Calculation Formula** contains `ACCOUNT`, `SUM_COMPANY`, `SUM_TAG`, `NPC` or `GT`. `DFFF` does not count. You cannot use such a variable in an account or subaccount, in an extra cost (**Quantity**, **Price** or **Factor**) or in the **Factor** of a supplement, even where the table allows the same function or subtotal. KOSMA treats the entry as a circular reference and does not save it.
In the **Base** of a markup, such a variable works as long as its formula does not contain `GT`. `NPC` is fine.
A fee you negotiate once needs no variable. Use a variable for a number that depends on something else or that can still change:
- a quantity that comes from the schedule - a rate that appears in several places in the budget, such as a per diem or a standard fee - a figure based on an assumption, such as the size of the crew or a contingency
Set the **Quantity** of an account to a [work-phase variable](/kb/article/use-phase-durations-in-formulas), for example `Shooting_workdays`. Change the phase, and the quantity follows. Every new budget has the work phase Shooting with 20 work days, so `Shooting_workdays` gives 20 until you change the phase.
To see formulas instead of results in Budgeting, click  **Switch value/expression display** in the toolbar (see [switch between values and formulas](/kb/article/switch-between-values-and-formulas)).
Before you change a variable, you can see how many formulas use it. Click  **Variables** in the toolbar. The **In Use** column shows it for each variable. For work-phase variables, **In Use** always shows 0, even if a formula uses them.
Markdown