Apply a routine to the calendar