Description
Measure a supplied shopping-detour duration's signed difference from a direct trip.
Consumer records distinguish events, choices, prices, quantities and supplied survey scales. A unit-price comparison requires comparable goods and quantity units, while a reversed score retains the original scale bounds. An observed time gap or selected option does not establish motivation, causation, consent or the fairness of a commercial practice.
Measure a supplied shopping-detour duration's signed difference from a direct trip.
When to use this tool
Use Shopping Trip Single Detour Time when you already have directTripMinutes, detourTripMinutes and need to measure a supplied shopping-detour duration's signed difference from a direct trip.
How to use the tool and how it works
- Enter directTripMinutes, detourTripMinutes. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read extraMinutes. Use the output convention below.
Require both durations>=0; return detour-direct.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| directTripMinutes | Direct Trip Minutes | Required. Finite number; minimum 0. |
| detourTripMinutes | Detour Trip Minutes | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| extraMinutes | Extra Minutes | Required. Finite number. |
{
"input": {
"directTripMinutes": 20,
"detourTripMinutes": 28
},
"output": {
"extraMinutes": 8
}
} Limitations and assumptions
- A shorter detour scenario gives a negative result. No route, travel time, actual trip or causal shopping burden is measured.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- 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. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Review the original transaction, interface, survey and event records for a behavioral conclusion. Use the complete study design and applicable commercial terms when interpreting comparisons; local flags and ratios do not estimate demand or verify an actual customer experience.
References
Similar or alternative tools
- Delivery Promise Delay Value
Measure a supplied delivery delay relative to a promised timestamp.
- Shopping Item Planned Unplanned Tag
Label a supplied planned/purchased item status.