added a non repeating period for the same day constraint, so that the search space is reduced.