script working with set dates