calendars relation logic