title: Get next date within a quarter
body: <p>I need to create a function to return the next processing date for a given item.  An item has a number that represents the month within a quarter that it is processed, as well as a number that represents the week within that month when it is processed.  So, given a particular item's create date, I need to get the next processing date for that item, which will be the first day of it's assigned week and month within a quarter.</p>
  
  <p>Note that weeks are broken out by 7 days from the start of the month, regardless of what day of the week.  So the first day of the first week could start on Tuesday or any other day for the purposes of this calculation.</p>
  
  <p>Example:<br>
  Let's say I have an item with a completed date of 1/8/2010.  That item has a monthWithinQuarter value of 2.  It has a weekWithinMonth value of 3.  So for this item that resolves to the third week of February, so I would want the function to return a date of 2/15/2010.  </p>
  
  <p>The function should look something like this:</p>
  
  <pre><code>var nextProcessingDate = GetNextProcessingDate(
                               itemCompletedDate,
                               monthWithinQuarter,
                               weekWithinMonth);
  </code></pre>
  
  <p>This calculation has to be pretty fast as this calculation is going to be happening a lot, both in real time to display on a web site as well as in batch mode when processing items.</p>
  
  <p>Thanks,</p>
  
  <p>~ Justin</p>