Relationship Duration Years Months Calculator
Completed Gregorian years/months using direct anchored day-of-month clamp to each targetmonth, then remainingdays. Explicit convention, not30daymonths, legal duration or local datetime arithmetic.
Description
Calendar relationship duration can separate completed years, additional months and remaining days.
Calendar relationship duration can separate completed years, additional months and remaining days.1
Calendar months have unequal lengths and need an explicit end-of-month convention.
When to use Relationship Duration Years Months Calculator
Use this tool to calculate or review the supplied observations under the stated rules. Establish the planning or observation scope, units, item definitions and applicable caller reference, quotation or instrument key.
How to use Relationship Duration Years Months Calculator and understand its results
- Establish the planning or observation scope, units, item definitions and applicable caller reference, quotation or instrument key.
- Enter actualRelationshipStartDate, actualRelationshipEndDate, using the field meanings and rules below, then run the tool.
- Read result.completedYears, result.completedAdditionalMonths, result.remainingDays. Use the units and sign conventions below.
- Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| actualRelationshipStartDate | Actual relationship start date | string | Required |
| actualRelationshipEndDate | Actual relationship end date | string | Required |
Parse valid Gregorian start/end dates in years 0001–9999 and require end≥start. Compute completed calendar months from anchors based on the original start day, clamped to each target month's final day. Reduce a candidate month count if its anchor falls after the end, then split completed months into years and extra months; remaining days run from that clamped anchor to the end. No fixed 365-day or 30-day division is used.
completedMonths=max(m:clampedMonthAnchor(start,m)≤end); years=floor(m/12); months=m%12; remainingDays=ordinal(end)−ordinal(anchor) Use the matching field units and the exact boundary, ordering and reference rules above.
| Output field | Meaning | Value type |
|---|---|---|
| result | Structured result; its nested fields below contain the actual calculation or selected reference | object |
| result.completedYears | Whole completed calendar years derived from the adopted clamped-month anchors | number |
| result.completedAdditionalMonths | Completed calendar months after the whole-year part, from zero through eleven | number |
| result.remainingDays | Elapsed days from the last completed clamped-month anchor to the end date | number |
{
"input": {
"actualRelationshipStartDate": "2024-01-31",
"actualRelationshipEndDate": "2025-03-02"
},
"output": {
"result": {
"completedYears": 1,
"completedAdditionalMonths": 1,
"remainingDays": 2
}
}
} Limitations and assumptions
The result describes the supplied planning records, observations or item rubric. It does not retrieve current quotations, validate a relationship instrument, infer personal feelings or predict relationship outcomes.
Missing required fields, unknown fields, wrong types and violated rules return input issues. Numeric values and outputs must be finite. Extremely large composite outputs are rejected.
Alternative or Complementary methods
For a related step, use Relationship Duration Days Calculator: Elapsed relationship days compare independently established calendar endpoints. For a complementary comparison, use Marriage Anniversary Lookup: Anniversary gift or label traditions depend on an adopted cultural reference.
References
Similar or alternative tools
- Relationship Duration Days Calculator
Elapsed relationship days compare independently established calendar endpoints.
- Marriage Anniversary Lookup
Anniversary gift or label traditions depend on an adopted cultural reference.