Linking a calendar and a time condition