# Appointment Slot Calculator 1.0.0 Calculate available starts from explicit work windows and busy intervals, with optional daily/weekly recurring dates. Node 20+, no npm, account, calendar connection or writes. Run `node app.mjs`, open its complete local URL, load JSON, Calculate slots and download the full JSON or slots CSV. Ctrl+C stops the service. CLI: `node cli.mjs examples/input.json new-report.json` (append `csv` for CSV). Existing files are refused. Exit 0 means a report was created; empty availability is valid. Exit 2 means invalid input/I/O. Every window/busy record has resource, start and end. Timestamps require explicit ISO offsets or Z; ambiguous local times are never guessed. Busy resource `*` blocks all resources. Unknown busy resources are errors. Set durationMinutes, stepMinutes, bufferMinutes and an IANA timeZone for display labels. Slots stay inside a work window, deduplicate overlapping windows and exclude buffered busy overlap. Window start anchors the step grid. Buffer surrounds busy intervals, not work-window edges. UTC start/end are authoritative; local labels may repeat during the autumn DST change. Supplying offsets explicitly distinguishes those times. A window already represents your intended actual instants; this tool does not convert recurring opening-hour rules through timezone transitions. No worker assignment, capacity holds or booking is made. Recheck availability atomically in your booking system before accepting a reservation. Optional recurrence uses startDate, DAILY/WEEKLY, interval, count and weekly weekdays (0 Sunday–6 Saturday). Cycles are anchored at startDate, not locale week boundaries. It emits dates only and does not claim full RFC RRULE support or choose DST times. At most 366 occurrences; interval 1–52. Limits: 1 MiB, 100 windows of at most 7 days, 1000 busy intervals and 20000 candidate starts. Durations/steps are 1–1440 minutes, buffer 0–240. See examples/input.json for a working configuration. Tests: `node --test tests/product.test.mjs`. Offline interval and HTTP/CLI acceptance do not establish integration with any external calendar or visual UI acceptance.