The example formula below converts total days into years, months, and days. Note that because calendar units are not constant (number of days in months, number of days in years) the values represented by the formula below are approximate.