title: How To get Specific dates and Algorithm
body: <p>my variables = ORDate , quantity, purchaseOrderDate, purchaseOrderTime</p>
  <p>business day include (monday to friday)</p>
  <pre><code>Example Purchase Order Time = 20211015 (yyyyMMdd) (2021-10-15)
  Example: Purchase Order Time = 093310 (hhmmss)   (09:33:10)
  </code></pre>
  <p><strong>If the order is Blank and is received before 2pm EST between M-F excluding US Holidays</strong></p>
  <pre><code>ORDate = Purchase Order Date
  </code></pre>
  <p><strong>If the order is Blank and is received after 2pm EST between M-F excluding US Holidays</strong></p>
  <pre><code>ORDate = Purchase Order Date + 1 day (between Monday-Friday excluding US Holidays)
  </code></pre>
  <p><strong>If the order is Blank with Finishing orders and is received before 2pm EST for orders less than 500 quantity between M-F excluding US Holidays</strong></p>
  <pre><code>ORDate =  Purchase Order Date + 1 day (between Monday-Friday excluding US Holidays)
  </code></pre>
  <p><strong>If the order is Blank with Finishing orders and is received after 2pm EST for orders less than 500 quantity between M-F excluding US Holidays</strong></p>
  <pre><code>ORDate = Purchase Order Date + 1 day + 1 additional business day.
  </code></pre>
  <p><strong>If the order is Blank with Finishing orders with more than 500 quantity between M-F excluding US Holidays</strong></p>
  <p>Initial 500 quantiy ORDate = Next business day + 1 additional business day.</p>
  <pre><code>Each Additional 500 quantity ORDate = Purchase Order Date + 1 day + 1 extra additional business day for each 500 quantity .
  
  if(purchaseOrderTime&lt;2pm){
   purchaseOrderDate = BusinessDay
  }
  if(purchaseOrderTime&gt;2pm){
   purchaseOrderDate = BusinessDay +1
  }
  </code></pre>