Fixed due date update

Save due date now only fails for negative working period durations and
for when sum of all working period durations is zero.