title: Increment Item Count when Value Hits 50
body: <p>I have a configurable product that allows a user to specify a quantity. The item is made on a sheet with multiple items on it (50) and if the user specifies:</p>
  
  <pre><code>0-50 = 1 sheet
  51-100 = 2 sheets
  101-150 = 3 sheets 
  </code></pre>
  
  <p>And so on until about 700 units. Currently I am doing this: </p>
  
  <pre><code>sheetCount = quantity / 50; 
  if (sheetCount == 0) {
      sheetCount = 1; 
  }
    if (pixelcounts[key] &lt; 50) {
                  sheetcount = 1; 
              } else if (pixelcounts[key] &gt; 50 &amp;&amp; pixelcounts[key] &lt; 100) {
                  sheetcount = 2; 
              } else if (pixelcounts[key] &gt;= 100 &amp;&amp; pixelcounts[key] &lt; 150) {
                         sheetcount = 3; 
              } else if (pixelcounts[key] &gt;= 150 &amp;&amp; pixelcounts[key] &lt; 200) {
                  sheetcount = 4; 
              } else if (pixelcounts[key] &gt;= 200).......
  </code></pre>
  
  <p>Is there an easier way to loop through this? </p>