Converts minutes into days, week, months and years
<p>Let's suppose I have a number which represents the minutes passed from the start time to now.</p>

<p>I wan to create a function which returns the years, months, week and days corresponding to the minutes I am passing to that function.</p>

<p>Here an example:</p>

<pre><code>var minutes = 635052; // 635052 = (24*60)*365 + (24*60)*30*2 + (24*60)*14 + (24*60)*2 + 12;
getDataHR(minutes); // 1 year, 2 months, 2 week, 2 days, 12 minutes

function getDataHR (newMinutes) {
      minutes = newMinutes;
      .......
      return hrData; // 1 year, 2 months, 2 week, 2 days, 12 minutes
}
</code></pre>

<p>What is the best way to achieve the result?</p>
