attempt to fix buggy dateToAge converter