Description
Return lateness=deliveredAt-promisedAt and its sign, and test inclusive membership from promisedAt-allowedEarly through promisedAt+allowedLate.
A logistics record separates ordered, reserved, dispatched, received, lost, and available quantities. It can also distinguish volume, mass, packaging, and cost bases. A balance or ratio checks supplied records and assumptions without verifying physical inventory, a contract, or safe loading.
Return lateness=deliveredAt-promisedAt and its sign, and test inclusive membership from promisedAt-allowedEarly through promisedAt+allowedLate.
When to use this tool
Use Supplier Delivery Lateness Sign when you need the particular supplied count, loading-budget, timing, or cost term in a logistics record.
How to use the tool and how it works
- Enter promisedAt, deliveredAt, allowedEarly, allowedLate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read lateness, sign, withinWindow. Inspect withinWindow before interpreting the associated values.
Return lateness=deliveredAt-promisedAt and its sign, and test inclusive membership from promisedAt-allowedEarly through promisedAt+allowedLate. Require nonnegative allowances.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| promisedAt | Promised At | Required. Finite number. |
| deliveredAt | Delivered At | Required. Finite number. |
| allowedEarly | Allowed Early | Required. Finite number; minimum 0. |
| allowedLate | Allowed Late | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| lateness | Lateness | Required. Finite number. |
| sign | Sign | Required. Safe integer. |
| withinWindow | Within Window | Required. Boolean. |
{
"input": {
"promisedAt": 10,
"deliveredAt": 12,
"allowedEarly": 1,
"allowedLate": 3
},
"output": {
"lateness": 2,
"sign": 1,
"withinWindow": true
}
} Limitations and assumptions
- Use one clock and time unit. Window membership follows supplied tolerances without checking an actual delivery, service contract, time zone, business calendar, or legal timeliness.
- The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Signed zero is exported as zero.
Alternative or Complementary methods
Check the original stock, shipment, measurement, and contract records before acting on a balance. A full packing, routing, procurement, or load assessment may require more than the returned term.
References
Similar or alternative tools
- Backorder Partial Delivery Balance
Return backorder=ordered-delivered-canceled and unallocated=backorder-allocated after feasible nonnegative integer count checks.
- Order Line Under Delivery Tolerance Gap
Calculate shortfall=max(0,ordered-delivered), allowable=ordered*suppliedTolerance, and margin=allowable-shortfall.