title: Calculating minutes left in the day
body: <p>I am trying to calculate how many minutes are left on any given day. I thought I had the soluion but the numbers look a little odd.</p>
  
  <p>My code:</p>
  
  <pre><code>date_default_timezone_set('Europe/London');
  $sTime = date("d-m-Y H:i:s");  
  echo 'The time is: ' . $sTime."&lt;br&gt;";
  
  
  $NowTime = date("H:i");
  
  echo $NowTime."&lt;br&gt;";
  
  $start = strtotime($NowTime);
  $stop = strtotime("23:59");
  
  $diff = ($stop - $start); //Diff in seconds
  
  echo "start ". $start."&lt;br&gt;";
  echo "stop " .$stop."&lt;br&gt;";
  echo "diff " .$diff."&lt;br&gt;";
  
  $minutes = $diff / 60;
  
  echo "minutes ". $minutes."&lt;br&gt;";
  
  $hours = $minutes / 60;
  
  echo "hours " .$hours."&lt;br&gt;";
  </code></pre>
  
  <p>The ouput:</p>
  
  <p>15:24</p>
  
  <p>start 1446909840</p>
  
  <p>stop 1446940740</p>
  
  <p>diff 30900</p>
  
  <p>H : M 08:35:00</p>
  
  <p>minutes 515</p>
  
  <p>hours 8.58333333333</p>
  
  <p>Question: How do I convert the hours "8.58333333333" to 8.xx minutes. </p>
  
  <p>Many thanks for your time.</p>