# Can we clear the dispatch backlog?

Opening Backlog = 450
Weekly Arrivals = 240
Weekly Capacity = 300
Weeks = 4
Orders Per Shift = 50
Available Shifts = 6
Shift Cost = £180.00
Budget = £1,000.00

Total Orders = Opening Backlog + Weeks * Weekly Arrivals
Regular Output = Weeks * Weekly Capacity
Extra Orders = Total Orders - Regular Output if Total Orders > Regular Output else 0
Required Shifts = Extra Orders / Orders Per Shift up to 0 places
Extra Cost = Shift Cost * Required Shifts
Shift Word = "shift" if Required Shifts == 1 else "shifts"

The order backlog stands at **=Opening Backlog** and weekly arrivals average **=Weekly Arrivals**. To clear the backlog by the end of week **=Weeks**, the team must dispatch **=Total Orders** in all.

| Dispatch plan | Quantity |
| --- | ---: |
| Regular weekly capacity | =Weekly Capacity |
| Regular capacity over the whole period | =Regular Output |
| Orders requiring extra shifts | =Extra Orders |
| Orders handled per extra shift | =Orders Per Shift |
| Extra shifts available over the whole period | =Available Shifts |
| Cost of one extra shift | =Shift Cost |
| Extra staffing budget | =Budget |

## Staffing decision

='''The regular team can clear the backlog on time. Keep the full **=Budget** available.''' if Required Shifts == 0

='''**Book =Required Shifts =Shift Word for =Extra Cost.** That covers the outstanding orders and leaves **=(Budget - Extra Cost)** in the staffing budget.''' if Required Shifts > 0 and Required Shifts <= Available Shifts and Extra Cost <= Budget

='''**Arrange more capacity or move the deadline.** The plan needs =Required Shifts =Shift Word. Even using every available shift, the projected backlog at the deadline is **=(Extra Orders - Available Shifts * Orders Per Shift)**.''' if Required Shifts > Available Shifts

='''**Request an extra =(Extra Cost - Budget) before booking.** The =Required Shifts =Shift Word needed to finish on time would cost **=Extra Cost** against a budget of =Budget.''' if Extra Cost > Budget

This plan assumes steady arrivals, the same output every week and enough work on hand when each extra shift starts. Use whole numbers for orders, weeks and shifts, with at least one week and one order per shift. All quantities and costs must be zero or greater.
