pub fn pred_week(date: NaiveDate) -> NaiveDate
Calculates a date with the previous week based on the given date.