# Track Against Plan

A schedule is only useful if you check it against what happens. Kanoa shows the schedule and the actual runs on the same time
axis. This lesson shows you how to compare them and what to do about orders that are running late.

## Compare Schedule and Actual

The **Production Counts** chart, on the **Production** page, shows one asset over a date range of up to 7 days. Operators
see the same chart as the **Asset Run Analysis** dashboard on the Operator Station.

1. Open **Ops → Analysis → Production**.
2. Select an asset and a date range, then click **Go**. Selecting a site or an area shows its assets as cards. Click a card to
   move down.
3. Look at the timeline under the counts.

![The Production Counts chart](https://docs.kanoa.ai/img/analysis/productionChart.png)

The timeline has a **Schedule** row, which is what you scheduled, and an **Actual** row, which is what the asset did. Both
use the same colors, so you can compare them directly. Look for runs that started late, ended early or never started.

Hover over a bar in the timeline to see its item, work order and required quantity.

The panel on the right shows totals for the range. The **Schedule** section shows time scheduled in each mode. Each run in
Production has its own section: hover over it to see its **Target**, **Infeed**, **Outfeed** and **Waste**, and its **Target
Rate** and **Actual Rate**.

While the range includes now, the chart refreshes by itself. The schedule refreshes every 10 minutes.

::embed-section{src="../../kanoa-ops-analysis/productionCounts.md#timeline" collapsed="true" summary="Reference Materials: Timeline - Schedule against Actual."}

## Check Orders for Progress

On **Ops → Scheduling → Production Orders**, select **Show Actual** to see how much of each order has been produced. Compare
it with the quantity ordered.

On the schedule, an order that is still unfinished after its due date shows as **Overdue**. Orders that are **In Progress**
have a run started on them.

## Reschedule a Late Order

1. Open **Ops → Scheduling → Operations** and select the asset.
2. Find the event for the late order. Select it and click the **Edit** button to change it, or click the **Delete** button
   to remove it (or press the Delete key).
3. Put the order back on the calendar with the order selector, as in the last lesson, or on another asset that can make it.
4. If the new time overlaps other work, choose how to handle it from the options Kanoa shows.

These steps need the **Schedule Operations** security function.

{/*
TODO: Confirm on a gateway how to reschedule a part-complete order. Check whether the remaining quantity is scheduled, and
whether the order's status needs changing. The docs don't describe this.
*/}

::embed-section{src="../../kanoa-ops/schedule-operations.md#order-status-color-configuration" collapsed="true" summary="Reference Materials: Order Status Colors - What each color means, and when an order is Overdue."}

## Check Your Understanding

1. Which two rows of the timeline do you compare to see if a run happened as planned?
2. When does Kanoa show an order as Overdue?
3. Which security function do you need to reschedule an event?

<details>
<summary>Answers</summary>

1. **Schedule** and **Actual**.
2. When it's In Progress, Released or Scheduled, its produced quantity is below the scheduled quantity, and its due date has
   passed.
3. **Schedule Operations**.

</details>
