- Docs
- Overview
- DS/DP Planning
How DS/DP Calculations Work
How a DS/DP plan counts batch supply, yields, kits per lot, dates and expiry, and what Risks and the Production plan flag.
Every number on a DS/DP plan comes from the same rules: the batch cards, Risks, Optimize, the Timeline and the Excel download. This page states them. For how to use the plan, see DS/DP planning.
What a batch supplies
A batch's usable quantity depends on its status. Quantities are the batch's whole output, before any DS → DP or DP → lot connection.
| Status | Usable quantity |
|---|---|
| DP Planned, In Progress | Planned quantity × expected yield, minus QC samples |
| DS Planned | Planned quantity, minus QC samples |
| DP Completed, Quarantined | Produced quantity, minus QC samples |
| DS Received, Quarantined | Received quantity, minus QC samples |
| Released | Usable released quantity, capped at what was produced or received. Yield and samples are not deducted again. |
| Consumed, Failed, Rejected | Nothing |
A DP expected yield left blank counts as no loss.
Free quantity
Free = usable − allocated − additional hold
Allocated is the sum of the batch's connections: DS consumed by DP batches, or DP allocated to lots. An additional hold is material kept aside outside the connections. For example, 900 released vials with 500 allocated and 50 held leave 350 free. When allocations exceed what is left, the batch shows a shortfall instead of free stock.
Quantities in compatible units (mg, g, kg; ml, l) are converted to one scale. A batch whose quantities can't be compared, such as a hold in ml on a batch counted in kg, supplies nothing until the units are corrected. Its card and Risks name the units that clash.
From DS to DP
A DS → DP connection records the Consumed Quantity: what leaves the DS batch. It is what the DS batch's allocated total counts.
- DS needed per DP unit is the recipe. A drug product's overfill per unit adds to it.
- DS yield is the share of the consumed DS that ends up in the DP batch. It is stored on the connection.
- DP yield is the DP batch's expected yield, used only while the batch is planned or in progress. Actual produced and released quantities replace it.
From DP to kits
A DP → lot allocation fills:
Kits = allocated DP units × lot yield ÷ DP units per kit