/**
  * @param Sprint    $sprint
  * @param \DateTime $date
  *
  * @return int
  */
 public function getEstimatedTimeForDoneTicketByDate(Sprint $sprint, \DateTime $date)
 {
     $estimated = 0;
     foreach ($sprint->getTickets() as $ticket) {
         if ($ticket->getSprint() != $sprint || $ticket->getType() != 'task') {
             continue;
         }
         $status = $this->ticketService->getStateByDate($ticket, $date);
         if (!in_array($status, ['En Revue', 'Fermé'])) {
             continue;
         }
         $estimated += $ticket->getEstimatedTime();
     }
     return $estimated;
 }