<h2>Delivery plan not showing correct dates on request</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><div class="margin"><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">The delivery time is set to 5 days on the item and in the workflow.</span></div> <div class="margin"><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">The schedule is (8-5, excluding weekends) and the expected time is set to 1 day, 16 hours. The delivery time is not showing up as 5 days.</span></div></section></div><div ><h3 >Resolution</h3><section><div class="margin"><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">The expected delivery time is calculated by Workflow. This is done in an API - global.Workflow().getEstimatedDeliveryTime(); in script include "Workflow". It involves calculation based on many parameters specified under schedule of a workflow like timezone, selected schedule etc. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">In customer's case as soon as a schedule is selected say 8-5 weekdays. The Estimated Time is converted into hours and added to the current date based on schedule. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">So for example, if you set estimated time as 2 Days without schedule - The estimated delivery is simply 2 Days. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">But when you select schedule then 2days(48 hours) are added to current time based on schedule. ie. 48 hours divided by 9 hours (1 working day). </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">This comes to ~5 days. Delivery time is calculated as difference from current time and the estimated time. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">Lets say if a catalog item is ordered on Sunday morning, the time is calculated as follows. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">- As Sunday is weekend, it is not included in the schedule. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">- Delivery time considers even the weekend. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">- As the schedule in the workflow is ,mentioned as 8-5 weekdays excluding holidays, 9 hours will be considered per day. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">- Starting from Sunday, the schedule is counted till it lapses 5 days. </span><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">- Please find the screenshot attached on the incident. </span></div> <div class="margin"><br style="box-sizing: border-box; color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;" /><span style="color: #455464; font-family: SourceSansPro, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px;">Note: If timezone is selected then few hours may be added or subtracted as well.</span></div></section></div></article></div>