diff --git a/src/Keboola/Syrup/Command/JobCommand.php b/src/Keboola/Syrup/Command/JobCommand.php
index <HASH>..<HASH> 100644
--- a/src/Keboola/Syrup/Command/JobCommand.php
+++ b/src/Keboola/Syrup/Command/JobCommand.php
@@ -226,7 +226,7 @@ class JobCommand extends ContainerAwareCommand
         // Update job with results
         $endTime = time();
         $createdTime = $this->job->getCreatedTime();
-        $waitSeconds = is_null($createdTime)?:$endTime - strtotime($createdTime);
+        $waitSeconds = is_null($createdTime)?:$startTime - strtotime($createdTime);
 
         $this->job->setStatus($jobStatus);
         $this->job->setResult($jobResult);
fix: waitSeconds in job