thrownewNoSpaceForTaskExeption("There is no space to add the task which needs to be added as the last task in the calendar",d,task,hours-task.duration);
// or should I just check here if the first task in tasks is split with the last task in dirDay and them just add the hours and isSplit and remove the from tasks and don't add it to dirDay again?