helper function: wrapToCorrectDayOfWeek