title: How to convert milliseconds into Days/hours/minutes
body: <p>I am calculating the hours,minutes using the milliseconds. Below is mycode</p>
  
  <pre><code>function getDuration(milli){
    let minutes = Math.floor(milli / 60000);
    let hours = Math.round(minutes / 60);
  }
  </code></pre>
  
  <p>I want to display the user the time as 'Days' if hours > 24 , 'minutes' if minute &lt; 60. How can i implement it in template string in the following format</p>
  
  <pre><code>setHtml('Duration', `${getDuration(user[0].milli_seconds)} &lt;span id="days"&gt;Hours&lt;/span&gt; &lt;span&gt;Minutes&lt;/span&gt;`);
  </code></pre>