Budgeting
You know what separates a markup from an account and from a wage fringe, what you can enter as its base, and what a subtotal shows.
A markup is a cost that belongs to no single account, such as a handling fee, a contingency or an insurance premium. An account takes **Quantity**, **Price/Unit** and **X**. A markup takes only **Base** and **%**, and KOSMA calculates its total from them:
KOSMA shows markups only on the **Overview/Markups** screen. Open it with **Overview/Markups** at the bottom of the **Categories** list. Below the markups, **Markups Total** shows their sum, and **Grand Total** shows the net production costs plus the markups. To add a markup, see [add and edit markups](/kb/article/add-and-edit-markups).
**Base** takes a formula. You can enter four kinds of value:
- a fixed amount: for an insurance premium quoted at 12,000, enter `12000` in **Base** and `100` in **%** - a budget total: `NPC` for the net production costs, or `DFFF` - the costs of one company: `SUM_COMPANY("Company name")` - a formula you write yourself: for example `NPC*1.06`
Most handling fees are a percentage of the net production costs, so their base is `NPC`. **Base** does not accept `GT`, the grand total. The grand total already contains every markup, so a markup based on it would have to contain its own total. For the details, see [use budget totals as a markup base](/kb/article/use-budget-totals-as-a-markup-base).
`SUM_COMPANY("Company name")` adds up every account attributed to that company, weighted by the company's share. Markups and deactivated rows are not part of that sum. On a coproduction, create one markup with `SUM_COMPANY` for each partner. KOSMA then calculates each partner's fee from that partner's costs.
With  **Subtotal**, you insert a subtotal row between categories or in the **Markups** grid. Between categories, it adds up the categories since the previous subtotal. The bottom subtotal of the category overview on the **Overview/Markups** screen adds up all categories. It is usually called **Net Production Costs**; a budget from a template can name it differently. It always stays at the bottom, and you can neither move nor delete it. For example, with categories of 1,000 and 2,000 and your own subtotal after the first, your subtotal shows 1,000 and the bottom one shows 3,000. In the **Markups** grid, a subtotal adds up the markups between it and the previous subtotal.
A subtotal is for reading only. No formula can use it, not even the **Net Production Costs** row. In formulas, the budget total `NPC` gives that sum. To base a markup on an earlier markup, write the calculation into **Base**. For example, if the handling fee is 6% of `NPC`, a fee on costs and handling fee together has the base `NPC*1.06`. For the steps, see [calculate a fee on costs plus the handling fee](/kb/article/use-subtotals-as-variables).
On a markup, the **Account Details** panel shows **Companies**, **Effects**, **Cashflow**, **Attachments**, **Tags**, **Notes** and **DFFF**. With **Companies** and **Effects**, you attribute a handling fee to the same companies and effects as the costs it is based on. `SUM_COMPANY` ignores this attribution. **Fringes & Supplements**, **Extra Costs** and **Taxes** do not appear on a markup.
A markup cannot carry a tax. When a tax is refunded at less than 100%, its non-refunded part goes to an account. That account counts toward the net production costs, which most markups are based on. A tax on a markup would therefore raise the markup's own base.
KOSMA calculates a wage fringe or a wage supplement from one account and shows it on a [collect-in account](/kb/article/how-collect-in-accounts-work). That account counts toward the net production costs, so the fringe or supplement does too. A markup belongs to no account. KOSMA adds it to the net production costs only in **Grand Total**. For the difference between fringes and supplements, see [how wage fringes and supplements differ](/kb/article/how-fringes-and-supplements-differ).
Markdown