Skip to content

feat: business day calculator in Turkish - #30

Merged
halitsever merged 1 commit into
mainfrom
feat/is-gunu-hesaplama
Dec 2, 2026
Merged

halitsever merged 1 commit into
mainfrom
feat/is-gunu-hesaplama

Conversation

@halitsever

Copy link
Copy Markdown
Owner

Adds /tr/is-gunu-hesaplama/ (TR only): business days between two dates and adding or subtracting business days, without weekends and Turkish public holidays.

  • Logic in src/is-gunu.js with test/is-gunu.test.mjs. Both dates count by default (option to drop the start); adding never counts the start date.
  • Options: Saturday as a work day, holidays on or off, arefe and 28 Ekim as half day (default), full work day or holiday. Each result lists the holidays in the range and their effect.
  • Fixed holidays from Law 2429 (checked on mevzuat.gov.tr 2026-12-02). Ramazan and Kurban dates for 2022-2035 from Diyanet's yearly "Resmi Tatil Günleri" lists, linked per year in the page table. Outside 2022-2035 only fixed holidays apply (none before 2017) and the result says so. İdari izin days are not holidays.
  • Linked both ways with /tr/gun-hesaplama/.

Semrush TR (2026-12-02): "iş günü hesaplama" 5.4K / KD 33, "iş günü sayısı hesaplama" 110 / 21, "20 iş günü hesaplama" 90 / 8, "30 iş günü hesaplama" 50 / 7, "excel iş günü hesaplama" 50 / 15. EN "business days calculator" 14.8K / KD 61 and "working days calculator" 12.1K / 64, so no English page.

Checks: npm test (216 pass); browser check for the new page at 1440, 1280 and 390 plus the gün hesaplama and index blocks passed.

@halitsever
halitsever merged commit c357122 into main Dec 2, 2026
2 checks passed
@halitsever
halitsever deleted the feat/is-gunu-hesaplama branch December 2, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant