Calculation details for min_delivery_date and max_delivery_date needed

reikje
New Member
2 0 1

Hello, I started to set min_delivery_date and max_delivery_date in the responses we return from a custom carrier service. However, the amount of business days in the checkout UI is not showing up as I want to. Example:

I need to display 10 to 28 business days on the shipping rate I am returning.

Returning "2021-10-01 00:00:00 -0400" and "2021-10-19 00:00:00 -0400" shows as 10 to 20 business days in the UI

Returning "2021-10-01 00:00:00 -0400" and "2021-10-29 00:00:00 -0400" shows as 8 to 28 business days in the UI - note that min_delivery_date is the same actually

Could someone give me a hint on what to return for a specific number of business days? Also, wouldn't it be better to return just numbers (business days) directly? I understand Shopify does some calculations for weekends, bank holidays under the hood - but those will always be different in different countries, right?

Cheers,

Reik