wip duration computation