How this calculation works
Calculate earliest and latest task times, slack, makespan and critical paths for a directed acyclic precedence network with task durations on vertices. A task can begin only after every predecessor finishes. The result assumes unlimited parallel resources and no calendar restrictions. It is a critical-path-method calculation for a deterministic task network, not a complete resource-constrained project scheduler.
ES(v)=max_predecessors EF; EF=ES+duration; LS(v)=min_successors LS−duration.A worked example
Tasks 0→1→3 have durations 2,3,2 and determine makespan seven. The alternative route 0→2→3 takes five. Task two has float two, while tasks zero, one and three have zero float.
Good to know
≤50 tasks and fixed nonnegative durations; cyclic precedence rejected. Critical-path listing is capped and explicitly marked when truncated. No resource leveling, deadlines, lag/lead constraints or stochastic PERT probabilities.
Durations belong to tasks
Each vertex represents one task and its nonnegative duration. An edge from a to b requires a to finish before b starts.
This is an activity-on-node convention, which differs from diagrams placing durations on edges. Multiple sources start at time zero, and unrelated tasks may run simultaneously. If the actual project requires release dates, setup lags or a common machine, those features must be modeled separately rather than inferred from a simple precedence edge.
Adds durations and backward/forward timing constraints; a topological order alone provides no schedule or slack. The Minimum edge cut calculator with edge disjoint path witnesses offers a complementary calculation under its own stated assumptions.
The forward longest-path pass
In topological order, a task’s earliest start is the maximum earliest finish among its predecessors. Its earliest finish adds its duration. The maximum finish across all tasks is the project makespan.
A maximum is used because all prerequisites must finish, not merely one route into the task. A directed cycle makes the precedence system invalid under this model. The calculator rejects cycles instead of attempting to schedule circular prerequisites.
Worked example and mathematical rule
Tasks 0→1→3 have durations 2,3,2 and determine makespan seven. The alternative route 0→2→3 takes five. Task two has float two, while tasks zero, one and three have zero float.
ES(v)=max_predecessors EF; EF=ES+duration; LS(v)=min_successors LS−duration.
The backward latest-time pass
Starting from the makespan, latest finish times propagate backward through successors using minima. Latest start is latest finish minus duration.
Slack is latest start minus earliest start and measures how much a task can be delayed under this idealized network before delaying completion. A zero-slack task lies on at least one critical route, but resource conflicts can make a real project more restrictive than these precedence-only latest times suggest.
Several critical paths can coexist
Equal-length alternatives can create multiple critical paths. Shortening a task on just one path may leave the makespan unchanged because another critical route remains.
The tool enumerates critical paths only up to a documented output cap and flags truncation. That output cap does not change the makespan calculation. It only limits the list of equally critical witnesses, which can grow combinatorially even in a modest acyclic graph.
Floating-point durations and zero tasks
Durations can be fractional, so criticality checks use numerical tolerance rather than exact textual equality. Zero-duration tasks are useful as milestones, though they can create many equivalent critical paths.
A disconnected task component can be noncritical if it finishes earlier than the component setting the makespan. Keep all durations in one time unit. Converting hours to days is a unit change, not a working-calendar adjustment for weekends or shifts.
Using slack in a planning discussion
Report the assumed unlimited-resource setting whenever presenting a completion estimate. Two tasks with no precedence relation may still compete for the same person or machine, making simultaneous earliest starts infeasible.
Unexpected duration changes also alter the critical set, so recalculate after meaningful revisions. Verify a reported path by summing its vertex durations and checking each precedence edge. The result is a deterministic baseline for discussion, not a probabilistic delivery forecast or an authorization to ignore resource constraints.
A few questions, answered
Are durations on edges or vertices?
Vertices. Each vertex is a task with its own duration.
Does this account for limited staff?
No. Tasks without precedence conflicts may run in parallel without resource limits.
Why is the critical-path list truncated?
The number of equal-length paths can be very large; makespan and slack are still computed.
Will shortening any critical task reduce completion time?
Not necessarily. Another critical path may still set the same makespan.