title: Coffeescript Looping Function
body: <p>I am trying to get this block of code to loop 7 times in coffeescript</p>
  
  <pre><code>, round(sum(case when b.data_type='fringe' and b.rp=201802  and b.tpd&lt;=b.rp 
  then b.bcws else 0 end),0) as bcwsFringe
  , round(sum(case when b.data_type='fringe' and b.rp=201802  
  and b.tpd&lt;=b.rp then b.bcwp else 0 end),0) as bcwpFringe
  , round(sum(case when b.data_type='fringe' and b.rp=201802  and b.tpd&lt;=b.rp 
  then b.acwp else 0 end),0) as acwpFringe
  </code></pre>
  
  <p>I was wondering if anyone could provide some insight? </p>