There is an optimal duration for constructing a project with the lowest cost.