title: Design pattern: Generating daily and weekly tasks based on specifications
body: <p>I am working on a project that has some inputs like task type and frequency. 
  For example </p>
  
  <p>if task type = Daily and frequency =2 then create 5 task every alternate day. 
  if task type = Daily and frequency =3 then create 5 task on today and 3rd and sixth days. 
  If task type = Weekly and frequency =2 then create 2 tasks every alternate week.</p>
  
  <p>More over I have a calendar table so I need to check working day, if that is a weekend, that task should be generated on next working day. I have calendar_Holidays table as well so check and skin that date as well.</p>
  
  <p>Can I use design pattern for this problem? can somebody show me how? </p>