generate_schedule function

Generate a date schedule