When dragging a task onto the calendar, if there are events that conflict with the required time, split the task up so that it fills in the time available rather than double booking.