Calculate deviation

Dynamic Production  •  Article  •  10/22/2025  • 

The system calculates deviations after potency-based adjustments for an item to provide accurate tracking of ingredient variations.

## Understanding deviation calculation

Traditional deviation calculations compare actual consumption against the original formula quantity. However, with potency adjustments, it incorrectly selects potency-driven changes as deviations.

After adjusting for potency, the system recalculates the required quantities based on the actual potency of the assigned lot. These recalculated quantities then become the new baseline for measuring deviation. Any differences between the actual consumption and this potency-adjusted baseline are considered as true deviation.

For exmple, a formula specifies 10 kg of an ingredient at 100% potency. However, the assigned lot has only 90% potency, so the system adjusts the required quantity to 11.11 kg to compensate.

During production, the actual consumption recorded is 11.50 kg.

As a result:

  • The new baseline for comparison becomes 11.11 kg, based on the potency adjustment.
  • The deviation is calculated as:
    11.50 kg (actual) - 11.11 kg (baseline) = 0.39 kg, which equals a 3.5% deviation.

The system reports only this true variance from the adjusted baseline, ensuring accurate and meaningful deviation tracking.
Deviation calculations are automatically applied when posting production orders with potency-controlled ingredients.