Calculation of project duration