add duration to task