$reference->setTime(0,0,0);
                  
                  
                  
                  
                  
                  $fullHours = floor($chunks/2);
                  
                  
                  
                  
                  
                  $interval = 'PT'. $fullHours. 'H';
                  
                  
                  
                  
                  
                  if ($fullHours * 2 != $chunks) {
                  
                  
                      $interval .= '30M';
                  
                  
                  }
                  
                  
                  
                  
                  
                  $newDate = $reference->add(new DateInterval($interval));
                  
                  
                  
                  
                  
                  echo $newDate->format('l H:i');
                  
                  
                  If Input $chunks = 50 then OP is Monday 01:00 
                  
                  
                  
                  
                  
                  Now I have to reverse the input as OP and OP as input how can I
                  
                  
                
Huh?
Обсуждают сегодня