add duration to doingtasks