# GDPR & NIS2 Deadline Calculator: 72h Breach, DSAR, Incident (`lerider/gdpr-nis2-deadline-calculator`) Actor

Exact EU compliance deadlines from one timestamp: GDPR breach notification (72 h), access request (one month, +2), NIS2 early warning, incident notification and final report. Time zones, clock changes, month ends, weekends; article reference in every answer. $0.001 per calculation.

- **URL**: https://apify.com/lerider/gdpr-nis2-deadline-calculator.md
- **Developed by:** [Lerider Technologies](https://apify.com/lerider) (community)
- **Categories:** Developer tools, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 deadline set calculateds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## GDPR & NIS2 Deadline Calculator: 72h Breach, DSAR, Incident Reporting

Give it the moment you became aware of a breach or incident, or the day an access request arrived, and get back
the exact EU deadlines: the due date and time in your time zone and in UTC, the article it comes from, how it was
calculated, and whether it is still open. Built for incident-response runbooks, ticketing and GRC tools, privacy
teams who handle many requests, and AI agents that need a deadline they can trust instead of guessing.

| Event | Deadlines you get | Rule |
|---|---|---|
| `gdpr_breach` | Notify the supervisory authority: 72 hours after becoming aware | Art. 33(1) GDPR |
| `gdpr_dsar` | Answer an access request: one month from receipt; optional two-month extension and the date to tell the person | Art. 12(3) GDPR, EDPB Guidelines 01/2022 |
| `nis2_incident` | Early warning 24 h, incident notification 72 h (24 h for trust service providers), final report one month after the notification | NIS2 Art. 23(4), Directive (EU) 2022/2555 |

### What it gets right that a quick "+72 hours" does not

- **Time zones and clock changes.** Times are read in the IANA time zone you give (default `Europe/Brussels`).
  When summer time starts or ends inside the 72 hours, "72 hours" and "3 days later on the clock" differ by one
  hour. The calculator shows the **earlier** of the two and explains both in `calculation`. A time that does not
  exist (the hour skipped in spring) or occurs twice (autumn) is flagged in `notes`.
- **Month ends and leap years.** One month from 31 January is the last day of February (29 February in a leap
  year); from 5 March it is 5 April. Same rule as the EDPB and Regulation 1182/71 on time limits.
- **Weekends and your public holidays.** A one-month deadline that lands on a Saturday or Sunday moves to the next
  working day. Public holidays move it only when you list them in `holidays`, because they differ per country.
  Hour deadlines (72 h, 24 h) never move: they run through weekends and holidays.
- **Same answers as the free web calculators.** The date arithmetic is the same as the free
  [GDPR breach 72-hour calculator](https://lerider.com/kennis/gdpr-breach-72-hour-deadline-calculator/?ref=apify-deadlines)
  [DSAR deadline calculator](https://lerider.com/kennis/dsar-response-deadline-calculator/?ref=apify-deadlines)
  and [NIS2 incident reporting calculator](https://lerider.com/kennis/nis2-incident-reporting-deadline-calculator/?ref=apify-deadlines),
  checked against them on thousands of dates, including every clock change from 2024 to 2030.
- **Deterministic and offline.** No network calls and nothing stored beyond your run's dataset. Same input, same
  output. Pass `now` to fix the moment the status is calculated for.

### Pricing

| Event | Price | When |
|---|---|---|
| `deadline-calculated` | **$0.001** | One request calculated (one item, with all its deadlines) |
| (free) | $0 | A request with an error (bad date, unknown time zone, unknown event) |

That is $1 per 1,000 calculations. Put up to 500 requests in one run.

### Input

One request:

```json
{"event": "gdpr_breach", "timestamp": "2026-03-27T10:00", "timezone": "Europe/Amsterdam"}
```

- `event`: `gdpr_breach`, `gdpr_dsar` or `nis2_incident`.
- `timestamp`: when you became aware (breach, incident) or received the request (access request). Local wall time
  in `timezone` such as `2026-11-12T14:30`, or an exact instant with an offset (`2026-11-12T13:30Z`,
  `2026-11-12T14:30+01:00`). For an access request a date is enough: `2026-11-12`.
- `timezone`: IANA name, for example `Europe/Dublin`, `Europe/Berlin`, `America/New_York`, `UTC`.
  Default `Europe/Brussels`.
- `holidays` (optional): dates that are not working days for you, e.g. `["2026-12-25", "2026-12-28"]`.
- `extend` (access requests): also give the extended deadline (two further months) and the date by which you
  must tell the person about the extension.
- `notification_submitted` (NIS2): when you actually sent the incident notification. The final report is due one
  month after it. Without it, the latest allowed notification (72 h) is used, which gives the latest possible
  final report date.
- `trust_service_provider` (NIS2): `true` for trust service providers (incident notification within 24 hours).
- `now` (optional): the moment for `status` and `time_left`. Default: the time of the run.

Batch:

```json
{"timezone": "Europe/Amsterdam", "holidays": ["2026-12-25", "2026-12-26"],
 "requests": [{"event": "gdpr_dsar", "timestamp": "2026-11-30", "extend": true},
              {"event": "nis2_incident", "timestamp": "2026-11-12T08:40", "notification_submitted": "2026-11-13T17:00"}]}
```

`timezone`, `holidays` and `now` at the top apply to every request that doesn't set its own.

### Output

One dataset item per request (shortened):

```json
{
  "index": 0,
  "event": "gdpr_breach",
  "timezone": "Europe/Amsterdam",
  "start": "2026-03-27T10:00+01:00",
  "deadlines": [{
    "step": "notify_supervisory_authority",
    "due": "2026-03-30T10:00+02:00",
    "due_utc": "2026-03-30T08:00Z",
    "rule": "Art. 33(1) GDPR",
    "rule_text": "the controller shall without undue delay and, where feasible, not later than 72 hours after having become aware of it, notify the personal data breach to the supervisory authority",
    "calculation": "72 hours from the moment of awareness (2026-03-27T10:00+01:00); a clock change falls inside the 72 hours: 72 real hours end 2026-03-30T11:00+02:00, 3 days on the wall clock end 2026-03-30T10:00+02:00; the earlier one is shown",
    "status": "open",
    "minutes_left": 2700,
    "time_left": "45 hours"
  }],
  "next_deadline": "notify_supervisory_authority",
  "status": "open",
  "notes": ["Notify without undue delay: 72 hours is the outer limit, not a target. ..."],
  "not_legal_advice": "Date arithmetic only, not legal advice. ...",
  "free_tool": "https://lerider.com/kennis/gdpr-breach-72-hour-deadline-calculator/?ref=apify-deadlines",
  "templates": "https://lerider.com/shop/gdpr-records-workbook-eu/?ref=apify-deadlines",
  "rules_version": "2026-11-12"
}
```

- Hour deadlines have `due` (local time with offset) and `due_utc`. Day deadlines (access request, NIS2 final
  report) have `due_date`; the NIS2 final report also has `due` at 23:59 local time on that day.
- `status` per deadline: `open`, `due_today`, `future` (the start moment is after `now`) or `overdue`. On the item:
  the status of the next open deadline, `partly_overdue` when an earlier one has passed, or `overdue`.
- A request with an error comes back as `{"index": 3, "error": "..."}` and is not charged.

### Honest scope

- **Date arithmetic only, not legal advice.** It does not tell you whether something is a personal data breach or
  a significant incident, when your organisation "became aware" (EDPB Guidelines 9/2022: a reasonable degree of
  certainty), or whether you are an essential or important entity.
- **NIS2 is a directive.** The binding deadlines are in your country's transposition law and CSIRT guidance. Most
  copy 24 h / 72 h / one month; check yours. Intermediate and progress reports (Art. 23(4)(c) and (e)) are
  mentioned in `notes`, not calculated.
- **Hour periods count from the exact minute.** That is never later than counting from the next full hour as
  Regulation 1182/71 would, so you are not told you have more time than you do.
- **No pauses.** The calculator does not pause the access-request clock. The EDPB (Guidelines 01/2022, para 159)
  says the time may be suspended while you wait for identity information or a clarification you asked for
  without undue delay; recalculate from the right date if that applies to you.
- **NIS2 final report on a weekend or holiday.** Following Regulation 1182/71, a final report date that lands on a
  Saturday, Sunday or listed holiday moves to the next working day. Your national law may count differently, so
  the original date is given in `notes` whenever this happens.
- **Public holidays** are only those you pass in `holidays`.

### Free tools and templates

- Free web calculators: [GDPR breach 72 hours](https://lerider.com/kennis/gdpr-breach-72-hour-deadline-calculator/?ref=apify-deadlines),
  [DSAR response deadline](https://lerider.com/kennis/dsar-response-deadline-calculator/?ref=apify-deadlines),
  [NIS2 incident reporting deadlines](https://lerider.com/kennis/nis2-incident-reporting-deadline-calculator/?ref=apify-deadlines),
  and the article [NIS2 incident notification for suppliers](https://lerider.com/kennis/nis2-supplier-incident-notification/?ref=apify-deadlines).
- Breach register, access-request log and records of processing in one spreadsheet:
  [GDPR records workbook](https://lerider.com/shop/gdpr-records-workbook-eu/?ref=apify-deadlines).
- NIS2 supplier pack: [NIS2 for suppliers](https://lerider.com/shop/nis2-supplier-en/?ref=apify-deadlines).

Made by Lerider Technologies (Netherlands). Questions or a rule you want added: open an issue on this Actor.

# Changelog

This Actor's version history is a separate document: https://apify.com/lerider/gdpr-nis2-deadline-calculator/changelog.md

# Actor input Schema

## `event` (type: `string`):

Which deadline set to calculate. Leave as is when you use 'Requests (batch)'.

## `timestamp` (type: `string`):

Local time in the time zone below, e.g. 2026-11-12T14:30. An exact instant with an offset also works (2026-11-12T13:30Z, 2026-11-12T14:30+01:00). For an access request a date is enough: 2026-11-12.

## `timezone` (type: `string`):

IANA name, e.g. Europe/Amsterdam, Europe/Dublin, America/New_York or UTC. Default Europe/Brussels. Deadlines are given in this zone and in UTC.

## `extend` (type: `boolean`):

GDPR access requests only. Adds the extended deadline (two further months) and the date by which you must tell the person about the extension.

## `notification_submitted` (type: `string`):

NIS2 only, optional. The final report is due one month after this. Without it, the latest allowed incident notification (72 h) is used.

## `trust_service_provider` (type: `boolean`):

NIS2 only. Trust service providers send the incident notification within 24 hours instead of 72.

## `holidays` (type: `array`):

Optional dates (2026-12-25) that are not working days for you. A month deadline that lands on one moves to the next working day. Saturdays and Sundays always do. Hour deadlines (72 h, 24 h) never move.

## `now` (type: `string`):

Optional. The moment for 'open / overdue / time left', e.g. 2026-11-14T09:00Z. Default: the time of the run.

## `requests` (type: `array`):

Up to 500 requests per run, each an object with event, timestamp and any of the fields above, e.g. \[{"event": "gdpr_dsar", "timestamp": "2026-11-02"}]. Time zone, holidays and 'now' set above apply to every request that doesn't set its own.

## Actor input object example

```json
{
  "event": "gdpr_breach",
  "timestamp": "2026-03-27T10:00",
  "timezone": "Europe/Amsterdam",
  "extend": false,
  "trust_service_provider": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "event": "gdpr_breach",
    "timestamp": "2026-03-27T10:00",
    "timezone": "Europe/Amsterdam"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lerider/gdpr-nis2-deadline-calculator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "event": "gdpr_breach",
    "timestamp": "2026-03-27T10:00",
    "timezone": "Europe/Amsterdam",
}

# Run the Actor and wait for it to finish
run = client.actor("lerider/gdpr-nis2-deadline-calculator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "event": "gdpr_breach",
  "timestamp": "2026-03-27T10:00",
  "timezone": "Europe/Amsterdam"
}' |
apify call lerider/gdpr-nis2-deadline-calculator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lerider/gdpr-nis2-deadline-calculator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/qRlLXa6Fim1jp2kBD/builds/8NBI5zPMGP2pHUMhY/openapi.json
