---
name: find-missing-reporting-dates
description: "Compare the dates in a report or data extract with the calendar it should cover, and list missing, unexpected and duplicated dates for each series. Use when checking daily, weekday or weekend reports, meter readings, branch returns or data feeds for gaps."
license: CC-BY-4.0
metadata:
  author: Raq.com
  version: "2026-11-22"
  homepage: https://skills.raq.com/skills/find-missing-reporting-dates
---

# Find dates missing from a reporting series

Compare a dated extract with its promised reporting calendar, including holidays, duplicates and unexpected dates.

## When to use this skill

- Someone wants to know which daily, weekday or weekend reports are missing from an extract.
- Several branches, devices or feeds should each report on every scheduled date.
- Dates may have shifted because of time zones or clock changes.

## When not to use it

- Filling gaps or estimating the missing values. The skill finds gaps; filling them needs a separate, agreed rule.
- Checking the figures inside each report. The skill checks which dates are present.

## What you need

- Inclusive expected start and end dates, permitted weekdays and explicit holiday exceptions.
- One observed date per record, with the reporting timezone already agreed.

## Ask before you start

If any of these are missing or unclear, ask before doing the work.

- What are the first and last dates the reports should cover, and are both included?
- Which days should have a report, and which holidays are excluded? Name the holiday calendar rather than assuming one.
- Which time zone defines a reporting day, and are the timestamps stored in UTC or local time?
- Does each branch, device or feed owe its own report?

## Method

1. Build the expected date set from the declared start and end dates, not from the first and last rows. Apply the weekday schedule and remove only the holidays the reporting agreement names. If each branch, device or other named series owes its own report, build a separate calendar for every expected series, including one with no rows.
2. Use the holiday calendar the agreement names. In the UK, England and Wales, Scotland and Northern Ireland have different bank holidays, so ask which applies rather than importing one.
3. Convert each timestamp to a reporting date in the agreed time zone before counting. A UTC timestamp late in the evening can belong to the next local date, and a clock change makes a day 23 or 25 hours long without adding or removing a date. Ask if the time zone or calendar is unclear.
4. Subtract observed dates from expected dates to find gaps, and observed minus expected to find dates outside the calendar. Count repeated dates separately from both tests and list each once.
5. Report each series separately in the requested order. Keep gaps visible: a gap does not mean a value of zero and should not be filled from a neighbouring date without a separate rule.

## Checks before you deliver

- Using the earliest and latest observed rows as the expected boundaries hides missing reports at either end.
- Weekends and local holidays depend on the reporting agreement. Do not import a national holiday calendar implicitly.
- Converting timestamps to dates in UTC when the agreement uses local time moves late-evening records to the wrong day.
- Letting one series' report cover another series' gap.

## How to present the result

Lead with the number of missing dates for each series and the full list. Then list unexpected dates and duplicated dates separately, and state the calendar used (date range, days, holidays and time zone) so the owner can check it. Give the missing dates in a form that can be pasted into a request to the data supplier.

## Worked example

**Request:** Check dates from 2026-05-01 to 2026-05-08 inclusive. Expect Monday to Friday. Monday 2026-05-04 is excluded.

**Supplied material:**

```text
Observed dates
2026-05-01
2026-05-03
2026-05-05
2026-05-05
2026-05-07
```

**Answer:** Request the missing reports for 6 and 8 May 2026. Check the duplicate on 5 May and the unexpected Sunday record on 3 May. The schedule excludes the holiday on 4 May.

## Structured output for tests

For an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.

Return missing, unexpected and duplicated as chronological arrays of distinct ISO dates. List each duplicate date once regardless of how many rows share it. For several independently required series, return series as an array in the requested series order, each object containing id and those three date lists.

## Sources

- [pandas: bdate_range](https://pandas.pydata.org/docs/reference/api/pandas.bdate_range.html): pandas builds a business-date range between start and end bounds, both included by default, with a weekmask and a holiday list that apply when a custom frequency such as 'C' is passed. It gives a reproducible way to build the expected calendar; the skill's cases were checked with it.
- [GOV.UK: UK bank holidays](https://www.gov.uk/bank-holidays): GOV.UK lists different bank holidays for England and Wales, Scotland and Northern Ireland, including substitute days. This is why the skill asks which calendar the reporting agreement uses.

Test cases and an answer checker for this skill: https://skills.raq.com/skills/find-missing-reporting-dates
