# How dates are calculated

> How Delivery Date works out an arrival date in Shopify: the day the parcel leaves, the days it's on the way and the weekdays your carriers deliver on.

Every date comes from three steps: the day the parcel leaves, the days it's on the way, and the days your carrier delivers on. The app calculates the date again each time a page loads, from your current settings. Only the Thank you and Order status pages show the date saved with the order.

## The day it leaves

The app first picks the location that ships the product. See [Stock and locations](/docs/delivery-date/stock-and-locations). Then it looks at that location's clock:

<Definitions>
<Definition title="Before the cut-off on a working day">
Processing starts today.
</Definition>

<Definition title="After the cut-off, or on a day off">
Processing starts on the next working day.
</Definition>
</Definitions>

The processing time then adds working days. With 0 days, the parcel leaves the day processing starts. With 1 day, it leaves the working day after. Working days skip the location's public holidays and closures. See [Processing time](/docs/delivery-date/processing-time).

## The days on the way

The delivery time says how many days the parcel travels. The app uses the first of these that exists:

1. The product's own time for the buyer's country. See [Product overrides](/docs/delivery-date/product-overrides).
2. The country's own time. See [Delivery times](/docs/delivery-date/delivery-times).
3. The time measured from your orders for that country. See [Measured delivery times](/docs/delivery-date/measured-delivery-times).
4. The default delivery time.

Each of your own times has a value for products in stock and one for products out of stock. A measured time applies to both.

## The days it arrives on

The days on the way count only arrival days, the weekdays your carrier delivers on, and they skip the public holidays of the buyer's country. With arrival days Monday to Friday, a parcel that leaves on Friday with a delivery time of 1 day arrives on Monday.

The arrival days come from the country's own setting, then from your measured deliveries, then from the default.

## Earliest and latest date

The app works out two dates. The earliest uses the shorter processing time and the shorter delivery time, the latest uses the longer ones. Your display style decides whether buyers see both or one of them. See [Display](/docs/delivery-date/display).

## An example

A location with a 13:00 cut-off, working days Monday to Friday and a processing time of 0 days. The delivery time is 2–4 days, and the arrival days are Monday to Friday:

| Order placed   | Leaves   | Earliest arrival | Latest arrival |
| -------------- | -------- | ---------------- | -------------- |
| Thursday 10:00 | Thursday | Monday           | Wednesday      |
| Thursday 14:00 | Friday   | Tuesday          | Thursday       |
| Saturday 09:00 | Monday   | Wednesday        | Friday         |

For the order on Thursday at 10:00, buyers also see the countdown: "Order within 3h to ship today".

## A cart with several products

The cart, checkout and every order get one date for all products together:

<Definitions>
<Definition title="The day it leaves">
The latest day any of the products leaves.
</Definition>

<Definition title="The days on the way">
The longest delivery time among the products.
</Definition>

<Definition title="The countdown">
Shows only when every product leaves today, and counts down to the earliest cut-off among them.
</Definition>
</Definitions>

## When the date changes

A change you save shows on the next page load. Once the countdown runs out, the blocks on the product page and in the cart ask again a minute later and show the next date.

The date on the Thank you and Order status pages is saved when the order is placed and doesn't change afterwards. See [Thank you and Order status](/docs/delivery-date/thank-you-and-order-status).