# Days until Sunday

Counts the days from today, or any date you choose, to the next Sunday, with its date and the Sunday after it.

- Page: https://www.acalculator.org/days/days-until-sunday
- JSON spec: https://www.acalculator.org/days/days-until-sunday.json
- Version: 4dd72dba2a58

## Default answer

Example with the default inputs (Count from September 30, 2026) on the example date Wednesday, September 30, 2026: From September 30, 2026, there are 4 days until Sunday, October 4, 2026.

## Inputs

| Key | Label | Description |
| --- | --- | --- |
| from | Count from | The date to count from. Today, unless you change it. |

## Outputs

| Key | Label | Description |
| --- | --- | --- |
| days | Days until Sunday | Whole days from the start date to the next Sunday; 0 when the start date is a Sunday. |
| date | Next Sunday | The next Sunday on or after the start date. |
| after | The Sunday after | The Sunday one week later. |

## Method

Days until Sunday = (0 − the start date’s weekday + 7) mod 7, with Sunday = 0, Monday = 1, …, Saturday = 6.

## Assumptions

- On a Sunday, the count is 0; the Sunday after is 7 days away.
- The start date itself is not counted: from the day before, the count is 1.
- Dates are calendar days with no time of day, so a time zone or a daylight-saving change never adds or loses a day.
- Start dates from January 1, 1900 to December 31, 2400 work.

## Worked examples

1. from = 2026-09-28 gives date = 2026-10-04, days = 6. Source: U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years).
2. from = 2026-12-31 gives date = 2027-01-03, days = 3. Source: U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years).
3. from = 2028-02-27 gives date = 2028-02-27, days = 0. Source: U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years).

## FAQ

### How many days until Sunday from each day of the week?

From Monday, 6; from Tuesday, 5; from Wednesday, 4; from Thursday, 3; from Friday, 2; from Saturday, 1; from Sunday, 0. On a Sunday the count is 0, and the Sunday after is 7 days away.

### What if today is Sunday?

Then the count is 0, because the next Sunday on or after today is today. The page also shows the Sunday after it, 7 days later.

### How many Sundays are in a year?

A year of 365 days is 52 weeks and 1 day, so the weekday of January 1 comes 53 times and every other weekday 52 times; in a leap year, the weekdays of January 1 and 2 come 53 times. 2026 has 52 Sundays, and 2027 has 52.

### How are the days until Sunday counted?

From the start date (today, unless you change it) to the next Sunday, without counting the start date, in calendar days. Weekends and holidays count like any other day.
