public boolean canCreateTask(LocalDate start, LocalDate end, Calendar calendar) {

        ArrayList<Task> tasks = calendar.getTasks();

        for(Task t: tasks){
            if(datesOverlapInTasks(start, end, t)){
                return false;
            }
        }
        return true;
    }