calendar: fix disappeared tasks

1) task was created for the future (root cause: done was not set to '0' when newTask(), completeDate is set when done != '0')
2) task in the future then done today (root cause: task.completeDate < task.startDate, the filtering function not recognised)