Planning tasks by time