public static int AgeInDays(IDated dated, Settlement.Settlement settlement) { return(settlement.TodaysDate.DaysSinceSettlement - dated.Birthday.DaysSinceSettlement); }
public static bool In(this IDated dated, Period period) => dated.Date >= period.Start && dated.Date <= period.End;