title: Check if current datetime is between 08 PM and 08 AM and calculate total hours left until 08 AM
body: <p>Here is the scenario, I need to know if current DateTime is between 08:00 PM (20:00) and 08:00 AM (08:00). If yes, I need to get the total hours left until 08:00 AM (08:00). </p>
  
  <p>My attempt:</p>
  
  <pre><code>TimeSpan start = TimeSpan.Parse("20:00");
  TimeSpan end = TimeSpan.Parse("08:00");  
  TimeSpan now = DateTime.Now.TimeOfDay;
  
  bool flag = false;
  if (start &lt;= end)
  {
       if (now &gt;= start &amp;&amp; now &lt;= end)
       {
           flag = true;
       }
  }
  else
  {      
      if (now &gt;= start || now &lt;= end)
      {
          flag = true;
      }
  }
  
  if (flag)
  {
      /// calculate hours?
  }
  </code></pre>