Calendar dates

Counting attendance dates without double counting a boundary

Build a dated attendance record that respects shared endpoints, single-session days and individual closures.

School, class and volunteer attendance sheets often record a span of dates and separately mark eligible sessions. The span is an explanation of coverage. It does not establish that a learner was present on every date. Define whether the record includes both the first and last dates and how to handle movement between two registers.

Suppose a programme runs 18–22 May and the next block starts on 22 May. Closed counting lists five dates in the first block. May 22 is also the first date of the next closed block. Give that date to the register responsible for recording the actual session, or keep separate session identifiers if two distinct sessions happened.

Use calendar separations to reproduce the main comparisons.

Closed counts and actual dated positions

Use consecutive periods and a working-date case so an overlap is visible rather than buried in a monthly total.

Recorded exampleFirst settingFirst resultComparison settingComparison result
17 June 2026 through 27 June 2026Count date transitions10 daysCount each civil date including both endpoints11 days
30 June 2026 through 4 July 2026Include both dated endpoints3 working daysExclude the start and retain the end2 working days
16 July 2026 through 21 July 2026Count date transitions5 daysCount each civil date including both endpoints6 days
2 August 2026 through 8 August 2026Count date transitions6 daysCount each civil date including both endpoints7 days
30 August 2026 through 6 September 2026Count date transitions7 daysCount each civil date including both endpoints8 days
25 September 2026 through 3 October 2026Include both dated endpoints6 working daysExclude the start and retain the end5 working days
30 October 2026 through 8 November 2026Count date transitions9 daysCount each civil date including both endpoints10 days

Record the actual session dates and any cancelled meetings. Keep the end-of-block convention in the report when a single date can appear in more than one period.

Prepare a reproducible attendance extract

Record the actual session dates and any cancelled meetings. Keep the end-of-block convention in the report when a single date can appear in more than one period.

5 December 2026 through 15 December 2026

The boundary date 5 December 2026 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

  • Count date transitions · 10 days
  • Count each civil date including both endpoints · 11 days

If another record starts on 15 December 2026, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

The date order is 2026-12-05 followed by 2026-12-15. The calendar span reads 0y 0m 10d and the weeks-and-days row reads 1w 3d.

19 January 2027 through 23 January 2027

The date order is 2027-01-19 followed by 2027-01-23. The calendar span reads 0y 0m 4d and the weeks-and-days row reads 0w 4d.

Applied choiceComputed value
Count date transitions4 days
Count each civil date including both endpoints5 days

The boundary date 19 January 2027 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

If another record starts on 23 January 2027, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

Blocks at the edge of a register

The following examples compare closed and half-open ranges. Use consecutive periods and a working-date case so an overlap is visible rather than buried in a monthly total.

18 May 2026 through 22 May 2026

The boundary date 18 May 2026 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

  • Count date transitions · 4 days
  • Count each civil date including both endpoints · 5 days

If another record starts on 22 May 2026, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

The date order is 2026-05-18 followed by 2026-05-22. The calendar span reads 0y 0m 4d and the weeks-and-days row reads 0w 4d.

19 May 2026 through 24 May 2026

The date order is 2026-05-19 followed by 2026-05-24. The calendar span reads 0y 0m 5d and the weeks-and-days row reads 0w 5d.

Applied choiceComputed value
Count date transitions5 days
Count each civil date including both endpoints6 days

The boundary date 19 May 2026 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

If another record starts on 24 May 2026, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

24 May 2026 through 30 May 2026

If another record starts on 30 May 2026, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

Count date transitions. 6 days. Count each civil date including both endpoints. 7 days.

The date order is 2026-05-24 followed by 2026-05-30. The calendar span reads 0y 0m 6d and the weeks-and-days row reads 0w 6d.

The boundary date 24 May 2026 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

27 May 2026 through 3 June 2026

Include both dated endpoints. 5 working days. Exclude the start and retain the end. 4 working days.

With both ends included the list contains 8 dates before exclusions. The weekly pattern removes 2 of them. A dated closure on 29 May 2026 is checked for overlap with dates already excluded, which leaves 1 further eligible closures.

The second run contains 7 dates before exclusions. Its corresponding weekly and applicable closure rows read 2 and 1.

When a staffing record uses a substitute holiday, include the actual non-working date from the roster. A date excluded twice for different reasons does not create two missing positions.

1 June 2026 through 9 June 2026

The boundary date 1 June 2026 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

  • Count date transitions · 8 days
  • Count each civil date including both endpoints · 9 days

If another record starts on 9 June 2026, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

The date order is 2026-06-01 followed by 2026-06-09. The calendar span reads 0y 0m 8d and the weeks-and-days row reads 1w 1d.

9 June 2026 through 18 June 2026

The date order is 2026-06-09 followed by 2026-06-18. The calendar span reads 0y 0m 9d and the weeks-and-days row reads 1w 2d.

Applied choiceComputed value
Count date transitions9 days
Count each civil date including both endpoints10 days

The boundary date 9 June 2026 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

If another record starts on 18 June 2026, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

Map each dated record to a single place in the register

For a combined total, order actual dates and resolve any duplicates before adding. If the reporting rule is one attendance per person per date, deduplicate on the pair of person and date. If the rule counts sessions, use the session identifier too. A day-of-week schedule can filter valid dates before checking exceptions, but the attendance field still depends on the observed record.

Pros and cons of the approach

Pros. Explicit boundaries explain whether a one-day record contributes one listed date or zero transitions.

Cons. Date counts alone do not prove sessions were held, seats were taken or an individual attended. Eligibility and attendance require their own columns.

Write down which key makes a record unique, then compare the result with the actual sign-in entries.

15 March 2027 through 20 March 2027

Include both dated endpoints. 4 working days. Exclude the start and retain the end. 3 working days.

With both ends included the list contains 6 dates before exclusions. The weekly pattern removes 1 of them. A dated closure on 17 March 2027 is checked for overlap with dates already excluded, which leaves 1 further eligible closures.

The second run contains 5 dates before exclusions. Its corresponding weekly and applicable closure rows read 1 and 1.

When a staffing record uses a substitute holiday, include the actual non-working date from the roster. A date excluded twice for different reasons does not create two missing positions.

8 April 2027 through 14 April 2027

The boundary date 8 April 2027 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

  • Count date transitions · 6 days
  • Count each civil date including both endpoints · 7 days

If another record starts on 14 April 2027, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

The date order is 2027-04-08 followed by 2027-04-14. The calendar span reads 0y 0m 6d and the weeks-and-days row reads 0w 6d.

16 May 2027 through 23 May 2027

The date order is 2027-05-16 followed by 2027-05-23. The calendar span reads 0y 0m 7d and the weeks-and-days row reads 1w 0d.

Applied choiceComputed value
Count date transitions7 days
Count each civil date including both endpoints8 days

The boundary date 16 May 2027 contributes zero transitions before any move. Advance one for each date reached. The closed list contains the starting position as well as the reached dates, so its total is one greater for this forward interval.

If another record starts on 23 May 2027, decide which period owns that shared boundary before adding the totals. Either count it in one disjoint period or carry the overlap as a documented adjustment.

Questions readers may need to resolve

Why is the daily list longer than the distance?

If both boundaries are included, the first dated position joins each date reached. This is one more than the number of date transitions.

Can the register include a day with two sessions?

Yes. Distinct session identifiers make it possible to retain both sessions while avoiding double entry of the same one.

How do I handle a shared closing date?

Assign it to the appropriate period under the reporting rule. A disjoint calendar range is useful when one record per person per date is required.

Should weekends be removed?

Apply the actual schedule. A weekend programme can still have valid attendance dates. A weekly pattern is only a starting policy.

What happens when an event is cancelled?

Keep its nominal date for context if needed and flag the cancellation separately. Actual attendance needs the correct session status.

Which date should be entered if a session crosses midnight?

Use the date convention defined by the programme, such as the designated start date. Preserve underlying times separately if needed.

Does a one-date record contain an elapsed day?

It can contain one attendance date and zero date transitions. The metric should identify which one you are reporting.

What do I check if a merged register seems too large?

Inspect shared dates, duplicates, and the rule about whether one person can have several records on the same date.

Explore the other Daylooply articles →