Budgeting
You can create the production's phases on the timeline, give each one its dates and work days, and change or delete it.
A work phase is a stretch of the production with a start and an end, for example *Prep*, *Shooting* or *Wrap*. Each phase has total days (TD) and work days (WD), which formulas in the accounts can use.
If you can only read the budget, a double-click in the timeline creates no phase, and **Ok** in the **Timeline** dialog is greyed out. This is the case with a Free licence or an expired trial, in a budget shared with you for reading only or linked to a cost control set, and when you work signed out. See [what your licence includes](/kb/article/what-your-licence-includes).
In the left panel, click  **Timeline**. KOSMA opens the **Timeline** dialog with the lanes **Milestones** and **Work Phases**.
Choose the scale with **Days**, **Weeks** or **Months**. Click **Today** to jump to today's date. To go back or forward in time, click  **Pan timeline left** or  **Pan timeline right**. You can also drag the empty background.
In the **Work Phases** lane, double-click the day the phase starts. KOSMA creates a phase of 7 days with 5 work days and opens **New Work Phase**.
Fill in the fields and click **Ok**. KOSMA shows the name and both counts on the bar, for example `TD: 63 | WD: 44` for *Prep* in the demo project.
- **Name**: KOSMA turns the name into two variables that formulas can use. For *Shooting*, these are `Shooting_workdays` (the work days) and `Shooting_duration` (the total days). If you rename the phase later, KOSMA updates every formula that uses them. - **Start Date** and **End Date**: when the phase starts and ends. Every date on the timeline depends on the **First Shooting Day** milestone. Until it has a date, the dialog shows **Start** and **End** instead: the days before or after First Shooting Day, for example `-7` or `+0`. - **Total Days (TD)**: KOSMA calculates this from the start and the end. You cannot edit it. - **Work Days (WD)**: how many days of the phase are worked, as a whole number of 0 or more. You enter it yourself; KOSMA does not take out weekends or breaks. Enter 10 work days in a 7-day phase and KOSMA moves the end 3 days later, so the work days set the length. - **Select color**: click a swatch, or click  **Custom color**. KOSMA saves a custom colour as the nearest of the 12 swatches.
Double-click the bar to open **Edit Work Phase** with the same fields. To move the phase, drag the middle of its bar. To change its start or end, drag the left or right edge. When TD or WD changes, KOSMA recalculates every formula that uses the phase. See [use phase durations in formulas](/kb/article/use-phase-durations-in-formulas).
When you change the start or the end, the dates set the length. **Work Days (WD)** keeps its value, so adjust it yourself. If the phase now has fewer total days than work days, KOSMA lowers WD to TD and shows this message:
The number of total days has changed. Make sure you adapt the work days number as well.
You cannot delete a phase that a formula, an account or a cash flow rule uses. See [why some things can't be deleted](/kb/article/why-some-things-cant-be-deleted). To delete any other phase, click  **Delete work phase** in **Edit Work Phase**, or select its bar and press Delete. KOSMA asks:
Are you sure you want to delete this work phase?
Click **Delete**.
Click **Ok** in the **Timeline** dialog. KOSMA saves all your timeline changes.
If you click **Cancel** or close the dialog, KOSMA discards all of these changes, including the phases you confirmed with **Ok** in **New Work Phase** or **Edit Work Phase**.
Markdown