Description
Return max(0,min(ends)-max(starts)) as overlap duration.
Agricultural time series depend on clock origins, reporting intervals, source vintage and crop-season labeling. A supplied clock offset can reconcile timestamps, while matching source labels alone cannot prove clock synchronization. Calendar-year labels and start-year/end-year crop-season labels use different boundary conventions.
Return max(0,min(ends)-max(starts)) as overlap duration.
When to use this tool
Use Farm Event Period Overlap when checking the stated clock, period, reporting-support or season-label convention.
How to use the tool and how it works
- Enter eventStart, eventEnd, periodStart, periodEnd. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read overlap. Use the output convention below.
Require eventEnd>=eventStart and periodEnd>=periodStart. Return max(0,min(ends)-max(starts)) as overlap duration.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| eventStart | Event Start | Required. Finite number. |
| eventEnd | Event End | Required. Finite number. |
| periodStart | Period Start | Required. Finite number. |
| periodEnd | Period End | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| overlap | Overlap | Required. Finite number. |
{
"input": {
"eventStart": 10,
"eventEnd": 20,
"periodStart": 15,
"periodEnd": 25
},
"output": {
"overlap": 5
}
} Limitations and assumptions
- Touching or zero-length intervals contribute zero duration; no timezone conversion or calendar interpretation is performed.
- 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
Use verified time metadata, calibrated clocks and the relevant complete crop/calendar conventions for actual temporal alignment and interpretation.
References
Similar or alternative tools
- Farm Event Source Delay
Normalize eventTime by subtracting sourceOffset.
- Farm Task Clock Source Flag
Compare clock-source labels literally.