Deadline automatic dates working