Skip to content

Main content

Migration Record Last Residence Duration Tool

Calculate signed date-only calendar days of an explicitly supplied last-residence interval without determining migration status.

Loading tool…

Description

Measure signed calendar duration of a recorded residence interval.

Geographic activity records depend on location precision, boundary vintage, observation time, population denominator and access-window conventions. A travel-time budget differs from actual accessibility, and rectangular cell area does not establish privacy. Local shares and labels need the original survey and spatial definitions.

Measure signed calendar duration of a recorded residence interval.

When to use this tool

Use Migration Record Last Residence Duration when you already have residenceStartDate, residenceEndDate and need to measure signed calendar duration of a recorded residence interval.

How to use the tool and how it works

  1. Enter residenceStartDate, residenceEndDate. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read signedCalendarDays. Use the output convention below.

Parse real UTC dates; return residenceEndDate-residenceStartDate in days.1

Input fieldMeaning and unitsAccepted input
residenceStartDateResidence Start DateRequired. Text; maximum UTF-16 length 8192. Real proleptic Gregorian YYYY-MM-DD; four-digit years 0000-9999 accepted.
residenceEndDateResidence End DateRequired. Text; maximum UTF-16 length 8192. Real proleptic Gregorian YYYY-MM-DD; four-digit years 0000-9999 accepted.
Output fieldInterpretationReturned shape
signedCalendarDaysSigned Calendar DaysRequired. Safe integer.
json
{
  "input": {
    "residenceStartDate": "2026-10-28",
    "residenceEndDate": "2026-11-01"
  },
  "output": {
    "signedCalendarDays": 4
  }
}

Limitations and assumptions

  • Reversed dates give a negative duration; no actual residence, migration status, legal duration or chronology is verified.
  • 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.

Alternative or Complementary methods

Use the actual route, service schedule, survey frame and boundary source when assessing mobility or access. Review disclosure across the full spatial dataset and linked records; a location label or cell-size product is not a complete privacy method.

References

  1. Calculation and input contract: human-geography/migration-record-last-residence-duration — tool.io

Similar or alternative tools