Daily streak & date gap calculator
Paste daily observations for one or more entities. Find consecutive runs, see which missing dates split them and inspect every boundary after deduplication.
Inspect daily activity
Calculations run in this page. This tool does not save inputs, send them to a calculation service or put them in the URL. Inputs and results are masked from optional session recording; other page scripts and browser extensions remain outside these guarantees. Use non-sensitive examples.
One entity,date pair per line; no header or quotes. Entity: 1–32 ASCII letters, digits, dot, underscore or hyphen; case-sensitive. Date: real YYYY-MM-DD, years 0001–9999. Spaces around fields are trimmed; blank lines ignored. Maximum 256 nonblank rows and 16,384 UTF-16 code units. No timestamps or time-zone conversion.
Daily observation summary
8 input rows · 7 distinct entity-days · 1 duplicate rows removed · 2 entities.
Consecutive means adjacent calendar days, including weekends. Island labels restart for each entity. Gaps are bounded by observed dates; there is no inferred absence before the first or after the last observation.
Consecutive islands
| Entity | Start | End | Days |
|---|---|---|---|
| ada | 2024-02-28 | 2024-03-01 | 3 |
| ada | 2024-03-04 | 2024-03-05 | 2 |
| bo | 2024-03-01 | 2024-03-01 | 1 |
| bo | 2024-03-03 | 2024-03-03 | 1 |
Internal gaps
| Entity | Start | End | Days |
|---|---|---|---|
| ada | 2024-03-02 | 2024-03-03 | 2 |
| bo | 2024-03-02 | 2024-03-02 | 1 |
Daily boundary trace
| Entity | Day | Previous day | Distance (days) | Starts island | Island |
|---|---|---|---|---|---|
| ada | 2024-02-28 | First observation | — | Yes | 1 |
| ada | 2024-02-29 | 2024-02-28 | 1 | No | 1 |
| ada | 2024-03-01 | 2024-02-29 | 1 | No | 1 |
| ada | 2024-03-04 | 2024-03-01 | 3 | Yes | 2 |
| ada | 2024-03-05 | 2024-03-04 | 1 | No | 2 |
| bo | 2024-03-01 | First observation | — | Yes | 1 |
| bo | 2024-03-03 | 2024-03-01 | 2 | Yes | 2 |
Copy your inspection report
Select and copy the report to retain the policy, totals, intervals and daily trace.
Events and active days are different counts
Repeated events on a date count once for that entity. The sample includes two events for Ada on February 29, 2024. Deduplication produces a three-day island from February 28 through March 1, then a two-day island from March 4 through March 5. The internal gap is March 2–3, inclusive. Bo’s dates are evaluated independently.
Make the calendar explicit
Supply dates already assigned to your reporting calendar. This tool accepts date-only Gregorian values and validates leap days; it does not convert timestamps or choose a user’s time zone. Weekends count as calendar days. A business-day sequence or inactivity-threshold session requires a different adjacency rule.
Understand the daily trace
The first observed date starts an island. A one-day distance continues it; a larger distance starts another. Island labels are local grouping numbers, not permanent identifiers. Inserting an earlier observation can renumber them, and filling a gap can join islands.
Internal gaps have two observed endpoints
A gap starts after one observation and ends before the next. The calculator never invents a reporting horizon. Users with no observations do not appear. To measure absence over a fixed month, define a calendar and an eligible population separately. A missing observation alone does not establish what happened in the real world.
Input and ordering policy
Use a simple comma-separated pair on each line, not general CSV. Headers, quoted fields, extra commas and timestamps are rejected. Field-edge spaces are trimmed; blank lines are ignored. Entity IDs are case-sensitive ASCII identifiers and dates are canonical. Output is sorted by entity and date; one entity’s activity cannot extend another’s streak. Empty input returns zero observations.
Clipping the input changes the question
If you paste February dates only, a streak beginning in January is clipped to February. To inspect full runs crossing a report boundary, include the necessary history. This is an observation calculator, not a historical database or a completeness monitor.
Reproduce the calculation in SQL
Read the SQL gaps-and-islands guide for runnable SQLite LAG and cumulative-SUM queries with an independent Python reference. The calculator does not execute SQL. The window-frame guide explains ROWS and peer groups.
References: SQLite window functions and date functions. The report is an educational calculation over supplied dates, with no claim about collection completeness or production query performance.