add duration to task when it is created with -f or -d