Calculate The Critical Path