private function computeDelay()
{
if (is_array($this->duration) && is_array($this->durationInTraffic) && array_key_exists('value', $this->duration) && array_key_exists('value', $this->durationInTraffic)) {
$delay = $this->durationInTraffic['value'] - $this->duration['value'];
$this->delay = $delay > 0 ? $delay : null;
} else {
$this->delay = null;
}
}