if (!accountPlanningCalendar._id.equals(acEntries[i]._id) && !testOverlap(acEntries[i], accountPlanningCalendar)) {
                    next(new Error('The schedule period must begin after the previous schedule period end date'));
                    return;
                }