= ?', [$startDate]); $target = 70; $stretchCurrent = 0; $stretchTarget = 20; $totalCurrent = $current; $totalTarget = $target; $deadline = $endDate->format('M. j'); $stretchOn = false; if($stretchTarget > 0 && $current >= $target){ $stretchOn = true; $totalCurrent = $current + $stretchCurrent; $totalTarget = $target + $stretchTarget; } ?>