Setting a date related conditions to a dynamic date