Description
When replacementKnown is true, require replacedDay between installedDay and observedDay and use it as anchorDay; otherwise use installedDay.
Lure-age and servicing records need a common day origin and an explicit installation or replacement anchor. An age or due flag describes the supplied schedule, not measured lure effectiveness.
When replacementKnown is true, require replacedDay between installedDay and observedDay and use it as anchorDay; otherwise use installedDay.
When to use this tool
Use Trap Lure Age Reset Token when checking a recorded lure age or caller-supplied servicing interval.
How to use the tool and how it works
- Enter installedDay, replacedDay, observedDay, replacementKnown. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read ageDays, anchorDay. Use the output convention below.
Require observedDay >= installedDay. When replacementKnown is true, require replacedDay between installedDay and observedDay and use it as anchorDay; otherwise use installedDay. ageDays = observedDay-anchorDay.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| installedDay | Installed Day | Required. Safe integer. |
| replacedDay | Replaced Day | Required. Safe integer. |
| observedDay | Observed Day | Required. Safe integer. |
| replacementKnown | Replacement Known | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| ageDays | Age Days | Required. Safe integer. |
| anchorDay | Anchor Day | Required. Safe integer. |
{
"input": {
"installedDay": 10,
"replacedDay": 20,
"observedDay": 25,
"replacementKnown": true
},
"output": {
"ageDays": 5,
"anchorDay": 20
}
} Limitations and assumptions
- Use common numeric day coordinates. An unknown replacement leaves the installation anchor in force; no lure effectiveness or replacement interval is inferred.
- 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 deployment histories and product-specific monitoring protocols before selecting a replacement schedule.
References
Similar or alternative tools
- Pheromone Monitoring Lure Age Gap
age = inspectionDay-deploymentDay; remaining = replacementInterval-age; replacementDue = age >= replacementInterval.
- Insect Voucher Sex Uncertain Token Tool
Preserve an explicitly recorded insect voucher sex status without biological inference.