Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
bb0b8e6
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
3442515
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
bb03f41
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
bbe6306
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
c5400eb
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
f245ff6
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
a1707c0
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
60486e3
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
7e52af9
fix(i18n): correct workday boundary-count explanation and mode guidance
appdevelopsk Nov 14, 2026
ebe4e84
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
0e344a3
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
1efa116
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
262307a
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
503dedd
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
a2827de
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
aea34ca
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
bc6f5cc
fix(i18n): avoid subtracting two workdays for nonworkday endpoints
appdevelopsk Nov 14, 2026
7322f8e
feat(workdays): extract local-date range math with optional exclusive…
appdevelopsk Nov 14, 2026
ba37fae
test(workdays): prove inclusive/exclusive behavior across weekends an…
appdevelopsk Nov 14, 2026
2a68804
feat(workdays): add shareable exclusive-boundaries option and zero-da…
appdevelopsk Nov 14, 2026
3138001
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
a075dbb
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
c1c69f8
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
031bdcb
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
bd97987
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
e580037
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
37542fe
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
c457a2d
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
3e9c0b8
feat(i18n): label exclusive date-range option and explain 0/1/2 bound…
appdevelopsk Nov 14, 2026
62ff84b
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
468a635
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
70c7300
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
e67e580
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
50ac437
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
8f20f93
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
cf6726b
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
eaf870d
feat(i18n): translate exclusive boundary controls for global workday …
appdevelopsk Nov 14, 2026
44ac5ac
test(i18n): keep exclusive-count UI and FAQ aligned across 17 locales
appdevelopsk Nov 14, 2026
06ab5fe
build(i18n): reject missing exclusive workday translations before build
appdevelopsk Nov 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint",
"typecheck": "tsc --noEmit",
"fetch:rates": "tsx scripts/fetch-rates.ts",
"prebuild": "node scripts/check-site-url.mjs && tsx scripts/fetch-rates.ts && node scripts/check-pressure-reference.mjs && node scripts/check-currency-rate-freshness.mjs",
"prebuild": "node --test scripts/workdays-faq-parity.test.mjs && node scripts/check-site-url.mjs && tsx scripts/fetch-rates.ts && node scripts/check-pressure-reference.mjs && node scripts/check-currency-rate-freshness.mjs",
"sitemap": "tsx scripts/generate-sitemap.ts",
"validate": "tsx scripts/validate.ts",
"audit:seo": "tsx scripts/audit-seo.ts",
Expand All @@ -29,7 +29,8 @@
"check:site-url": "node --test scripts/check-site-url.test.mjs",
"audit:nattzy-cta": "node scripts/check-nattzy-cta.mjs",
"test:nattzy-cta": "node --test scripts/check-nattzy-cta.test.mjs",
"audit:nattzy-timezone": "node scripts/check-nattzy-cta.mjs --timezone"
"audit:nattzy-timezone": "node scripts/check-nattzy-cta.mjs --timezone",
"test:workdays-faq": "node --test scripts/workdays-faq-parity.test.mjs"
},
"dependencies": {
"@types/qrcode": "^1.5.6",
Expand Down
41 changes: 41 additions & 0 deletions site/scripts/workdays-faq-parity.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import test from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";

const root = new URL("../src/tools/workdays-calculator/", import.meta.url);
const locales = ["en","ja","es","de","fr","it","pt-BR","ar","zh-CN","zh-TW","ko","hi","id","ru","th","tr","vi"];
const read = name => readFileSync(new URL(name, root), "utf8");

test("all 17 workday locales have an exclusive-date label and correct boundary FAQ", () => {
for (const lang of locales) {
const value = JSON.parse(read("messages/" + lang + ".json"));
const faq = value.faq[lang === "en" ? 2 : 0];
const label = value.input.excludeEndpoints;
assert.equal(typeof label, "string", lang + " missing input label");
assert.ok(label.length >= 6, lang + " input label too short");
assert.ok(faq.a.includes(label), lang + " FAQ must mention the actual control");
for (const v of ["0", "1", "2"]) assert.ok(faq.a.includes(v), lang + " FAQ needs 0/1/2 boundary handling");
assert.ok(value.mode.range && value.mode.add, lang + " two modes must remain");
assert.ok(value.input.holidays && value.input.includeSat && value.input.includeSun, lang + " original input keys missing");
}
});

test("English copy uses the existing N-workdays mode and does not suggest manual holiday offsets", () => {
const english = JSON.parse(read("messages/en.json"));
assert.match(english.description, /N workdays from a date/);
assert.match(english.faq[1].a, /on this calculator/);
assert.match(english.faq[1].a, /All listed custom holidays are applied here/);
assert.doesNotMatch(english.faq[1].a, /use the Date Calculator|move that result forward one workday/i);
assert.match(english.article.sections[1].paragraphs[1], /Friday–Saturday weekend is not modeled directly/);
});

test("range UI renders zero-result exclusive counts and restores the checkbox from shared state", () => {
const component = read("Component.tsx");
assert.match(component, /useState\(false\);[\s\S]*?\[excludeEndpoints, setExcludeEndpoints\]/);
assert.match(component, /d\.excludeEndpoints/);
assert.match(component, /checked=\{excludeEndpoints\}/);
assert.match(component, /t\("input\.excludeEndpoints"\)/);
assert.match(component, /countWorkdays\(sd, ed, weekend, hSet, excludeEndpoints\)/);
assert.match(component, /result && start <= end/);
assert.match(component, /mode === "range" && excludeEndpoints \? "\+exclusive"/);
});
59 changes: 18 additions & 41 deletions site/src/tools/workdays-calculator/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useMemo, useState } from "react";
import { useLocale, useTranslations } from "next-intl";
import { useShareableState } from "@/lib/hooks/useShareableState";
import { HOLIDAY_PRESETS, type HolidayCountry } from "./holidays";
import { countWorkdays, isoDate } from "./workday-range";

const PRESET_OPTIONS = ["", "US", "JP", "UK", "DE"] as const;

Expand All @@ -16,40 +17,6 @@ function parseHolidays(input: string): Set<string> {
);
}

// Local calendar date → "yyyy-mm-dd". (toISOString() is UTC: east of UTC — e.g. JST — it shifted
// every day back by one, so preset holidays matched the wrong weekday.)
function isoDate(d: Date): string {
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
}

function countWorkdays(
start: Date,
end: Date,
weekend: Set<number>,
holidays: Set<string>,
): { workdays: number; weekendDays: number; holidayDays: number; total: number } {
if (start > end) return { workdays: 0, weekendDays: 0, holidayDays: 0, total: 0 };
let workdays = 0;
let weekendDays = 0;
let holidayDays = 0;
let total = 0;
const cur = new Date(start);
while (cur <= end) {
total++;
const dow = cur.getDay();
const dStr = isoDate(cur);
if (weekend.has(dow)) {
weekendDays++;
} else if (holidays.has(dStr)) {
holidayDays++;
} else {
workdays++;
}
cur.setDate(cur.getDate() + 1);
}
return { workdays, weekendDays, holidayDays, total };
}

// start から n 営業日後(n<0 は前)の日付。開始日自体は数えない。
function addWorkdays(start: Date, n: number, weekend: Set<number>, holidays: Set<string>): Date | null {
const step = n < 0 ? -1 : 1;
Expand All @@ -73,30 +40,34 @@ export default function WorkdaysCalculator() {
const [end, setEnd] = useState(futureStr);
const [includeSat, setIncludeSat] = useState(false);
const [includeSun, setIncludeSun] = useState(false);
const [excludeEndpoints, setExcludeEndpoints] = useState(false);
const [holidays, setHolidays] = useState("");
const [preset, setPreset] = useState<"" | HolidayCountry>("");
const [mode, setMode] = useState<"range" | "add">("range");
const [days, setDays] = useState("30");

useShareableState(
"workdays-calculator",
{ mode, start, end, days, includeSat, includeSun, holidays, preset },
{ mode, start, end, days, includeSat, includeSun, excludeEndpoints, holidays, preset },
(d) => {
if (d.mode === "range" || d.mode === "add") setMode(d.mode);
if (typeof d.start === "string") setStart(d.start);
if (typeof d.end === "string") setEnd(d.end);
if (typeof d.days === "string") setDays(d.days);
if (typeof d.includeSat === "boolean") setIncludeSat(d.includeSat);
if (typeof d.includeSun === "boolean") setIncludeSun(d.includeSun);
if (typeof d.excludeEndpoints === "boolean") setExcludeEndpoints(d.excludeEndpoints);
if (typeof d.holidays === "string") setHolidays(d.holidays);
if (d.preset === "" || (typeof d.preset === "string" && d.preset in HOLIDAY_PRESETS)) setPreset(d.preset as "" | HolidayCountry);
},
);

const presetInRange = useMemo(() => {
if (!preset) return [];
return HOLIDAY_PRESETS[preset].filter((h) => h.date >= start && h.date <= end);
}, [preset, start, end]);
return HOLIDAY_PRESETS[preset].filter((h) =>
h.date >= start && h.date <= end && !(mode === "range" && excludeEndpoints && (h.date === start || h.date === end))
);
}, [preset, start, end, mode, excludeEndpoints]);

const afterDate = useMemo(() => {
if (mode !== "add") return null;
Expand All @@ -122,16 +93,16 @@ export default function WorkdaysCalculator() {
if (preset) {
for (const h of HOLIDAY_PRESETS[preset]) hSet.add(h.date);
}
return countWorkdays(sd, ed, weekend, hSet);
}, [start, end, includeSat, includeSun, holidays, preset]);
return countWorkdays(sd, ed, weekend, hSet, excludeEndpoints);
}, [start, end, includeSat, includeSun, excludeEndpoints, holidays, preset]);

const dateFmt = useMemo(
() => new Intl.DateTimeFormat(locale, { month: "short", day: "numeric", year: "numeric", weekday: "short" }),
[locale],
);

// GA4 calculate の label(ToolInteractionTracker が読む)。祝日プリセットと週末設定のみ=日付は送らない。
const calcLabel = `${mode === "add" ? "add:" : ""}${preset || "none"}${includeSat ? "+sat" : ""}${includeSun ? "+sun" : ""}`;
const calcLabel = `${mode === "add" ? "add:" : ""}${preset || "none"}${includeSat ? "+sat" : ""}${includeSun ? "+sun" : ""}${mode === "range" && excludeEndpoints ? "+exclusive" : ""}`;

return (
<div data-calc-label={calcLabel}>
Expand Down Expand Up @@ -167,6 +138,12 @@ export default function WorkdaysCalculator() {
<input type="checkbox" checked={includeSun} onChange={(e) => setIncludeSun(e.target.checked)} />
<span>{t("input.includeSun")}</span>
</label>
{mode === "range" && (
<label className="inline-flex items-center gap-2">
<input type="checkbox" checked={excludeEndpoints} onChange={(e) => setExcludeEndpoints(e.target.checked)} />
<span>{t("input.excludeEndpoints")}</span>
</label>
)}
</div>

<label className="mt-4 block">
Expand Down Expand Up @@ -225,7 +202,7 @@ export default function WorkdaysCalculator() {
) : (
<div className="text-sm text-slate-600 dark:text-slate-400">{t("empty")}</div>
)
) : result && result.total > 0 ? (
) : result && start <= end ? (
<dl className="grid gap-2 text-sm">
<div className="flex justify-between rounded bg-emerald-50 px-3 py-2 dark:bg-emerald-900/20">
<dt className="font-medium">{t("result.workdays")}</dt>
Expand Down
3 changes: 2 additions & 1 deletion site/src/tools/workdays-calculator/messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"end": "تاريخ النهاية",
"includeSat": "السبت يوم عمل",
"includeSun": "الأحد يوم عمل",
"excludeEndpoints": "استبعاد تاريخي البداية والنهاية",
"holidays": "إجازات للاستثناء (واحدة لكل سطر)",
"holidaysHint": "تنسيق ISO: 2026-01-01. مفصولة بفواصل أو مسافات أو أسطر جديدة.",
"days": "عدد أيام العمل (السالب = قبل)"
Expand Down Expand Up @@ -58,7 +59,7 @@
]
},
"faq": [
{ "q": "هل تاريخي البداية والنهاية شاملان؟", "a": "نعم. إذا كانا كلاهما أيام عمل، كلاهما يُحسبان. إذا كان عقدك يحسب فقط الأيام بينهما (حصري)، اطرح 2 من النتيجة." },
{ "q": "هل تاريخي البداية والنهاية شاملان؟", "a": "نعم، لكن يُحسب تاريخ البداية أو النهاية فقط إذا كان يوم عمل وفق إعدادات عطلة الأسبوع والعطلات الرسمية المختارة. لحساب الأيام الواقعة بين التاريخين دون الطرفين، اطرح فقط كل طرف مختلف تم احتسابه فعلاً (0 أو 1 أو 2)، ولا تطرح 2 تلقائياً. إذا تساوى التاريخان فالناتج دون الطرفين يساوي 0. ويمكنك أيضاً تحديد «استبعاد تاريخي البداية والنهاية» في وضع نطاق التواريخ لحساب ذلك تلقائياً." },
{ "q": "هل تُستبعد العطل الرسمية تلقائياً؟", "a": "فقط إذا اخترت قالباً جاهزاً: تتضمن الأداة العطل الرسمية للولايات المتحدة واليابان والمملكة المتحدة (إنجلترا وويلز) وألمانيا لعامي 2026–2027. ولأن العطل تختلف حسب البلد والمنطقة والسنة، أضف التواريخ يدوياً للدول الأخرى أو لأيام إغلاق شركتك؛ وتُجمع مع القالب." },
{ "q": "هل يمكنني استخدام هذا لعقود دولية؟", "a": "نعم — لكن تأكد أن كلا الطرفين يتفقان على الإجازات التي يجب حسابها. العقود متعددة الجنسيات غالباً تحدد 'أيام عمل كما يُلتزم بها في [مدينة] [بلد]' لتجنب الغموض." },
{ "q": "ماذا إذا وقعت إجازة في عطلة نهاية الأسبوع؟", "a": "لا تُحسب مرتين. إذا كان 2026-01-01 إجازة الخميس، يُحسب كإجازة. إذا وقع 2027-12-25 يوم السبت، الخوارزمية تحسبه بشكل صحيح كيوم واحد (عطلة نهاية الأسبوع)، ليس اثنين." },
Expand Down
3 changes: 2 additions & 1 deletion site/src/tools/workdays-calculator/messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"end": "Enddatum",
"includeSat": "Samstag ist ein Arbeitstag",
"includeSun": "Sonntag ist ein Arbeitstag",
"excludeEndpoints": "Start- und Enddatum ausschließen",
"holidays": "Feiertage zum Ausschließen (einer pro Zeile)",
"holidaysHint": "ISO-Format: 2026-01-01. Durch Komma, Leerzeichen oder Zeilenumbruch getrennt.",
"days": "Anzahl Werktage (negativ = davor)"
Expand Down Expand Up @@ -78,7 +79,7 @@
"faq": [
{
"q": "Sind Start- und Enddatum inklusiv?",
"a": "Ja. Wenn beide Arbeitstage sind, werden beide gezählt. Wenn ein Vertrag nur die Tage dazwischen (exklusiv) zählt, 2 vom Ergebnis abziehen."
"a": "Ja, aber Start- und Enddatum zählen jeweils nur, wenn sie nach den gewählten Wochenend- und Feiertagsregeln Arbeitstage sind. Für ausschließlich dazwischenliegende Tage nur die tatsächlich gezählten, unterschiedlichen Endpunkte abziehen (0, 1 oder 2), nicht pauschal 2. Sind beide Daten gleich, ist das exklusive Ergebnis 0. Alternativ im Zeitraum-Modus 'Start- und Enddatum ausschließen' aktivieren, dann wird dies automatisch berechnet."
},
{
"q": "Werden Feiertage automatisch berücksichtigt?",
Expand Down
9 changes: 5 additions & 4 deletions site/src/tools/workdays-calculator/messages/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Workdays Calculator – Count Working Days Between Two Dates (Free)",
"shortDescription": "Count business days between two dates, excluding weekends and any holidays you list. Customizable: include Saturday or Sunday as workdays if needed.",
"description": "Enter a start and end date to see how many workdays (business days) fall between them — weekends and public holidays excluded, both dates counted. Pick a US, UK, Japan or Germany holiday preset or list your own dates. To find the date N workdays after a start date, use the Date Calculator's business-day mode.",
"description": "Choose Date range to count working days between two dates, or 'N workdays from a date' to find a future or past workday. Customize weekends, 2026–2027 US/UK/Japan/Germany holiday presets and your own dates; the start day is excluded in the N-workdays mode.",
"metaDescription": "Enter a start and end date to get the number of working days instantly. Skips weekends and US, UK, Japan or Germany holidays, or your own list. Free tool.",
"keywords": ["workdays calculator", "business days calculator", "workdays between two dates", "how many workdays between dates", "working days excluding weekends and holidays", "business days excluding holidays", "weekdays between dates", "workdays in 2026"],
"empty": "Pick a start and end date to count workdays.",
Expand All @@ -14,6 +14,7 @@
"end": "End date",
"includeSat": "Saturday is a workday",
"includeSun": "Sunday is a workday",
"excludeEndpoints": "Exclude start and end dates",
"holidays": "Holidays to exclude (one per line)",
"holidaysHint": "ISO format: 2026-01-01. Comma, space, or newline-separated.",
"days": "Number of workdays (negative = before)"
Expand All @@ -38,7 +39,7 @@
"heading": "Why we let you customize weekends",
"paragraphs": [
"Most countries use Saturday-Sunday as the weekend, but it varies. Most Middle Eastern and some North African countries observe Friday-Saturday as the weekend. Some industries (retail, hospitality) consider weekends as workdays.",
"Our toggles let you mark Saturday or Sunday as workdays individually. So you can configure: Mon-Fri only (default), 6-day work week (include Saturday), or even Sunday-only weekend (uncheck Sunday)."
"You can include Saturday or Sunday as workdays with the toggles, or leave both as weekends (the default). These controls cannot make Friday a weekend, so a Friday–Saturday weekend is not modeled directly here. For legal or contractual deadlines, verify the applicable local calendar rather than relying on this toggle alone."
]
},
{
Expand All @@ -59,8 +60,8 @@
},
"faq": [
{ "q": "How many workdays are between two dates?", "a": "Enter both dates: the calculator counts every Monday–Friday in the range (start and end included), then subtracts the public holidays from the preset you pick and any dates you list. Example: July 1–31, 2026 has 23 weekdays; with the US federal holiday preset (Independence Day observed on Friday, July 3) it is 22 workdays." },
{ "q": "How do I find the date that is N workdays after a start date?", "a": "This page counts workdays between two known dates. To go the other way — for example '30 workdays from July 16, 2026' — use the Date Calculator (linked below the tool): turn on business-day mode and pick the same public-holiday preset (US, Japan, UK or Germany, 2026–2027); it skips weekends and those holidays and lists the holidays it skipped. Dates you typed in this page's own holiday list are not carried over, so move that result forward one workday for each such extra day off. To double-check, count here from the day after your start date to the result — it should equal N." },
{ "q": "Are start and end dates inclusive?", "a": "Yes. If both are workdays, both are counted. If your contract counts only the days between (exclusive), subtract 2 from the result." },
{ "q": "How do I find the date that is N workdays after a start date?", "a": "Use the 'N workdays from a date' mode on this calculator, enter a start date and signed number of workdays (negative for earlier dates), then choose the same weekend settings, holiday preset and any custom holiday dates. The start date itself is not counted. All listed custom holidays are applied here; you do not need to transfer them to another calculator. To double-check a positive N, switch to Date range and count from the day after your start date through the result (inclusive) with the same settings." },
{ "q": "Are start and end dates inclusive?", "a": "Yes. A start or end date is counted only if it is a workday after applying your weekend and holiday settings. If you need only dates strictly between them, subtract each distinct endpoint that was actually counted (0, 1 or 2), not always 2. For the same start and end date, the exclusive result is 0. Or select 'Exclude start and end dates' in Date range to calculate this automatically." },
{ "q": "Are public holidays included automatically?", "a": "Only if you pick a preset: built-in data covers public holidays in the United States, Japan, the United Kingdom (England & Wales) and Germany for 2026–2027. Holidays vary by country, region and year, so for anywhere else — or for company-specific days off — add the dates manually; they are combined with the preset." },
{ "q": "Can I use this for international contracts?", "a": "Yes — but make sure both parties agree on which holidays to count. Multinational contracts often specify 'business days as observed in the [city] of [country]' to avoid ambiguity." },
{ "q": "What if a holiday falls on a weekend?", "a": "It's not double-counted. If 2026-01-01 is a Thursday holiday, it's counted as a holiday. If 2027-12-25 falls on a Saturday, the algorithm correctly counts it as one day (weekend), not two." },
Expand Down
Loading
Loading