Budgeting
You know how KOSMA calculates the Total of an account, what the Total (EUR) column shows and why an account row sometimes shows blank cells.
The **Total** of an account is its quantity multiplied by its price and by a factor, in the currency the account is priced in. You enter the factor in the **X** column:
A new account starts with 1 in **Quantity**, 0 in **Price/Unit** and 1 in **X**. Every subaccount you add after the first starts with the same values. In each of these three cells, you can enter a number, a variable or a formula. In a formula, in every interface language, write decimals with `.` and separate arguments with `,`.
**Total** shows the amount in the currency the row is priced in. The column headed **Total** with a currency code, for example **Total (EUR)**, shows the same amount converted into the currency you pick in the toolbar. KOSMA converts it at the exchange rate of that currency. Picking another currency in the toolbar does not change the price or the currency of an existing row. To set currencies and their exchange rates, see [set currencies and the reporting currency](/kb/article/set-currencies-and-the-reporting-currency).
The currency you pick in the toolbar also becomes the currency of every account you create after that.
A group, a category or an account with subaccounts has no quantity or price of its own. KOSMA adds up the rows beneath it.
A deactivated account still shows its own Total. KOSMA leaves it out of the group, the category, the category's total row and the grand total. This also applies to every account in a deactivated group. For more on deactivating, see [how a budget is structured](/kb/article/how-a-budget-is-structured).
An account with subaccounts takes its values from them. **Quantity** shows the sum of the subaccounts' quantities, and **Unit**, **Price/Unit**, the currency and **X** show the values they share. KOSMA shows these values only while all subaccounts have the same unit, price, currency and X. If one of these four differs, KOSMA leaves all five cells on the account row blank. For example, 3 days and 5 kilometres do not add up to one meaningful quantity. **Total** and **Total (EUR)** keep showing the sum of the subaccounts.
If the subaccounts use different currencies, the account's **Total** adds amounts in different currencies. Only **Total (EUR)** then shows a sum you can use.
On an account with subaccounts, you cannot type into these five cells. To change the values, edit the subaccounts. For how subaccounts work, see [what subaccounts are for](/kb/article/what-subaccounts-are-for).
Markdown