adding setdiff method in dates and corrects basic_plan