Method Deck / dates
Computes exact calendar age (years, months, days) between a birth date and an as-of date.
None.
| Name | Inputs | Answer |
|---|---|---|
| worked example | {"birth_date":"1990-06-15","as_of_date":"2026-09-30"} | 36 years, 3 months, 15 days |
| test vector: single-month borrow | {"birth_date":"1995-11-20","as_of_date":"2026-03-05"} | 30 years, 3 months, 13 days |
| test vector: same-day age is exact years | {"birth_date":"2000-02-29","as_of_date":"2024-02-29"} | 24 years, 0 months, 0 days |
3415f8d8474882a814ad65b0a0e132162026-09-30T22:39:30.722Z0faf80f4f9e159fdfdcfd6d78e0b8aee977ffc4f5eabe7c086af63d2368a7398