add date/totalDaysInYear

just to avoid repeating this logic everywhere.. many use cases.