How dates, holidays and prayer times are computed
Every calculator on this site runs in your browser. The province, year, leave days or wage you choose never leave your device. The calculations rest on three sources: the lists of religious days published by the Presidency of Religious Affairs (Diyanet), Law 2429 on national and general holidays together with labour and civil-service law, and the parameters the Diyanet has published for prayer times. Our last full reading: 28 October 2026.
1. Feast, Ramadan and holy-night dates
Ramazan and Kurban Bayramı, the first day of Ramadan, Laylat al-Qadr, the holy nights (kandil), the Hijri new year and Ashura are read from the Diyanet's yearly lists: 2026, 2027, 2028 and 2029. We do not compute these dates ourselves. The Diyanet fixes the start of Hijri months in advance by astronomical criteria: after the new moon, the crescent must be visible somewhere on Earth, at least 8 degrees from the sun and 5 degrees above the horizon (Diyanet definitions). The dates are therefore known years ahead and do not change later.
For holy nights and Laylat al-Qadr, the date in the list is the evening on which the night begins. Some countries wait for a naked-eye sighting, so a feast may start a day earlier or later there; the Diyanet's note on Hijri calendar differences explains why. Public holidays in Turkey always follow the Diyanet's date.
2. Public holidays and half days
The holidays and their length come from Law 2429: 1 January, 23 April, 1 May, 19 May, 15 July, 30 August and 29 October, with 28 October a holiday from 1 pm. Ramazan Bayramı lasts 3.5 days and Kurban Bayramı 4.5 days, both starting at 1 pm on the eve. When two holidays share a day, as on 19 May 2027, the fourth day of Kurban Bayramı and 19 May, the day is counted once.
A holiday on a weekend is not moved; the law has no such provision. In 2027 there are 14.5 holiday days in all; for a Monday-to-Friday employee 12 of them fall on weekdays, leaving 250 working days. On a six-day week, 13.5 holiday days fall on working days. Half days count as working days, since the morning is worked. Article 2/D adds a rule for public offices: when a holiday ends on a Friday evening, the following Saturday is also off. The six-day-week option of the calculators does not apply it.
3. Feast breaks and the leave planner
The feast-break calculator splits the calendar around the feast into blocks: free blocks of weekends and full holidays, and working blocks of working days. Taking a whole working block off joins the free blocks on both sides. The tool finds the longest uninterrupted break for your number of leave days and, on a tie, the option that uses fewer. Leave for the eve morning counts as a full day by default; you can count it as half a day.
The yearly planner applies the same logic to the whole year by dynamic programming over the sequence of working blocks: among all combinations, it picks the one that gives the most days off within the budget. The answer is exact. Each chain of leave must touch a holiday on a working day; leave that touches none is shown as "free to plan". Example: in 2027, 10 leave days give 32 days off on a five-day week, 33 if eve mornings count as half days, 27 on a six-day week. The planner does not apply Article 56 of the Labour Code: annual leave can be split only by agreement, and one part must be at least ten days.
4. Administrative leave
Administrative leave for public employees around a feast is not in the law; it is announced by a Presidential circular in the Official Gazette. We checked every issue from 1 January 2026 to 27 October 2026, extra issues included, and found no administrative leave for 2027. The site therefore shows it as "not announced yet"; we add dates only once a decision is published.
5. Holiday pay and annual leave
Holiday pay follows Labour Code 4857: an employee who works on a public holiday receives an extra day's pay (Art. 47). Daily pay is monthly pay divided by 30, or hourly pay times 7.5 (Art. 49, and the 45-hour week of Art. 63). Figures are gross. Annual leave is 14 days for one to five years of service (five included), 20 days above five and under fifteen, 26 days from fifteen; at least 20 days for employees aged 18 or under or 50 or over; 4 more days for underground work (Art. 53). Civil servants get 20 days up to ten years of service (ten included) and 30 above, under Law 657 (Art. 102).
6. Imsak, iftar and prayer times
Times are computed from the coordinates of the 81 provincial centres, taken from Wikidata (CC0). The sun's position is derived each day with Jean Meeus's abridged formulas. The parameters are the Diyanet's: imsak when the sun is 18 degrees below the horizon (Diyanet: imsak), isha at 17 degrees; safety margins (temkin) of 7 minutes before sunrise, 5 minutes for dhuhr, 4 for asr and 7 after sunset for maghrib, none for imsak and isha. Turkey has used UTC+3 all year since 2016. During Ramadan the dawn call is made at imsak (Diyanet). How latitude and longitude shift the times is described in the Diyanet's comparisons.
7. Comparison with the Diyanet calendar
We read the Diyanet's official prayer times for 81 provinces from 28 October 2026 to 31 December 2027, 403 days, and compared them with our results: 195,858 comparisons. No time differs by more than 1 minute.
| Prayer time | Same minute | During Ramadan 2027 |
|---|---|---|
| Imsak | 93.4% | 95.1% |
| Sunrise | 94% | 94.9% |
| Dhuhr | 96.2% | 96.8% |
| Asr | 92.7% | 92.6% |
| Maghrib | 94.5% | 93.7% |
| Isha | 95% | 95.3% |
The remaining cases differ by exactly one minute, most likely because rounding goes the other way when the exact time falls near the middle of a minute, or because of slightly different reference points for a provincial centre. Agreement is lowest in Van (83.8%). We do not publish the Diyanet's times; we read them only to compare. The official calendar for 2028 and later is not out yet, so those timetables are computed only.
8. Tests, limits and corrections
Automated tests run before every change: holiday counts against the law, feast dates against the Diyanet list, prayer times against the comparison samples (one minute at most), and the planner against the rule that a larger budget never gives fewer days off. The calculators do not know your collective agreement, shift pattern or school holidays; times are for provincial centres and the official calendar prevails for worship. Report errors through the contact page; how we correct is in the editorial policy.