Check if the date is before the current date
bool isBeforeDuration(Duration duration) => isBefore(DateTime.now().subtract(duration));