diff --git a/schedule.php b/schedule.php index 9944b9a..a0c60b9 100644 --- a/schedule.php +++ b/schedule.php @@ -85,7 +85,7 @@ switch ($relationship) { case 'ss': // Start-to-Start - $maxES = max($maxES, $dependency['ES'] + $offset); + $maxES = max($maxES, $dependency['EF'] + $offset); $task['ES'] = $maxES; $task['EF'] = $maxEF = $task['ES'] + $task['duration']; break;