{"id":"interval-overlap-formula","text":"The `max(0, min(end1, end2) - max(start1, start2) + 1)` idiom for closed-interval overlap length appears in `days_together` and is a cross-cutting pattern used across multiple solutions in the repo.","truth_value":"IN","source":"entries/2026/06/06/count-days-spent-together-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"interval-overlap-formula","truth_value":"IN","reason":"premise"}]}}