Budgeting
You can take the work days for a daily fringe limit from the quantity of an account or of one of its subaccounts, without typing the number again.
`ACCOUNT_QTY` and `SUBACCOUNT_QTY` use a quantity that is already entered on an account, so you do not type the number a second time. Both work only in **Timebase (days) for fringe limits**, the field for the work days of a daily fringe limit (see [apply fringes and supplements](/kb/article/apply-fringes-and-supplements)).
| Function | Returns | | ------------------------ | --------------------------------------------- | | `ACCOUNT_QTY` | the quantity of the account | | `SUBACCOUNT_QTY("Prep")` | the quantity of the account's subaccount Prep |
Click in the field. KOSMA opens a menu that offers `ACCOUNT_QTY` under  **Functions**, and `SUBACCOUNT_QTY` only if the account has subaccounts.
For the account's own quantity, pick `ACCOUNT_QTY`. KOSMA inserts it ready to use:
When you point to `SUBACCOUNT_QTY`, KOSMA lists the account's subaccounts by name. Pick one, and KOSMA inserts its name in brackets:
Besides the two functions, the field accepts numbers and the operators `+ - * / ( )`. If you enter any other name, KOSMA does not save the entry.
To remove the timebase, empty the field.
An actor is paid per shoot day but works more days, because rehearsals and fittings count too. The account holds only the paid shoot days, and the fringe limit needs the larger number of work days. Enter the function that returns the quantity with the work days in **Timebase (days) for fringe limits**, for example `SUBACCOUNT_QTY("Work days")` if the work days are the quantity of the subaccount Work days. KOSMA then calculates the fringe limit from these days.
`SUBACCOUNT_QTY("Prep")` returns the quantity of the subaccount Prep, wherever it sits in the account. You cannot give two subaccounts of one account the same name. If you rename Prep, KOSMA changes the name in the formula too. In a budget saved with a number in brackets, such as `SUBACCOUNT_QTY("2")`, KOSMA replaces the number with the name of the second subaccount when you open the budget.
If you delete a subaccount that a timebase names, KOSMA asks first and lists the account's **fringes timebase formula**. With **Cancel** you keep the subaccount. With **Delete anyway** you delete it, and **Timebase (days) for fringe limits** shows **Unknown part of expression**.
Enter the name of another subaccount there, or a number.
Markdown