checks the length of the calendar color