update the duration field while propagating data-flow.