title: Why does Math.floor return zero?
body: <p>I'd like to ask why the <code>Math.floor</code> method returns zero. This is my code:</p>
  
  <pre><code>var duration = 217;
  
  var sec = Math.floor((duration / 1000) % 60);
  var min = Math.floor((duration / (60 * 1000)) % 60);
  </code></pre>
  
  <p>What's wrong there?</p>