Quick revision
The short answer
I would treat business calendars as shared reference data with a named owner, not as cron expressions hard-coded in services. Times are stored and computed in UTC and converted to local time only for scheduling decisions and display. Schedulers ask a calendar service or library whether a run is due for a given country and business date, under company-wide standards for time zones, daylight saving and idempotent date-based jobs, and every calendar change is versioned and auditable because it changes financial outcomes.
What to remember
In this answer, we treated business calendars across 30 countries as a data and governance problem. Cron cannot express irregular holidays, so calendars become owned, versioned reference data with identifiers. Times are stored and computed in UTC with local time used only for scheduling decisions and display. Jobs keep simple triggers and ask a calendar service or library whether a run is due, under standards for IANA zones, daylight saving windows and idempotency per business date, and every calendar change is approved, recorded and tied to the runs it affects.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would treat business calendars as shared reference data with a named owner, not as cron expressions hard-coded in services. Times are stored and computed in UTC and converted to local time only for scheduling decisions and display. Schedulers ask a calendar service or library whether a run is due for a given country and business date, under company-wide standards for time zones, daylight saving and idempotent date-based jobs, and every calendar change is versioned and auditable because it changes financial outcomes.
Why this question is asked
In a company operating in 30 countries, 'run on the last business day of the month' has 30 answers, and they change every year as governments add holidays, move them or declare one-off days off. When each team encodes its own version in cron expressions and spreadsheets, payments go out on holidays, settlements are a day late and nobody can say which calendar a past run used. Interviewers ask senior leaders this question to see whether they recognise a data and governance problem behind what looks like a scheduling detail. In this answer, we will look at why cron alone fails, establish calendars as owned reference data, set the UTC rule, provide a calendar service used by schedulers, define standards and make calendar changes auditable.
1Why Cron Expressions Cannot Hold Business Calendars
A cron expression describes a regular pattern: every weekday, the last day of the month. Business calendars are irregular: Germany's public holidays differ by state, Easter moves every year, Islamic holidays follow the lunar calendar and are confirmed only shortly before, and governments announce one-off holidays at short notice. 'The last business day of the month in Germany' cannot be written as a cron expression at all.
Teams work around this in their own ways: a hard-coded list of holiday dates in a properties file, a spreadsheet copied from finance, a library that was correct three years ago. Each copy drifts. The cost appears as real money: a payment run on a bank holiday when the settlement system is closed, interest calculated for the wrong number of days, a regulatory report filed late. And when auditors ask why the March run happened on the 30th, there is no record of which calendar it used.
2Calendars Are Shared Reference Data With an Owner
The first decision is organisational: business calendars are reference data, like currency codes or country lists, and they need an owner. Usually that is an operations or treasury function that already tracks holidays for settlement, working with engineering, which provides the system. The owner is accountable for each calendar being correct and published ahead of time, for example the next year's calendars by 1 October, with a process for emergency changes.
Each calendar has an identifier, such as DE-NW-BANK for bank business days in North Rhine-Westphalia or SG-EXCHANGE for exchange trading days in Singapore, because one country can have several calendars for different purposes. Services refer to calendars by these identifiers, never by copying dates.
3Store and Compute in UTC, Convert at the Edge
The second rule is about time itself. Timestamps are stored and compared in UTC, which has no daylight saving gaps or overlaps. Local time is used only where it matters: deciding whether a local business event is due, and showing times to people. The business date of a job, 'the trading day this settlement belongs to', is a plain date with an explicit calendar and time zone attached, not something derived from the server's clock.
This removes a whole class of bugs. A job running at 23:30 UTC no longer has to guess whether it is processing today or tomorrow in Singapore, where it is already 07:30 the next morning; it asks for the business date in Asia/Singapore explicitly.
4A Calendar Service That Schedulers Ask
Engineering provides a calendar service, or a library backed by a published dataset, that answers simple questions: is this date a business day in this calendar, what is the next or previous business day, what is the last business day of this month. Schedulers keep simple, regular triggers, such as every day at 18:00 Frankfurt time, and the job asks the calendar whether a run is due before doing anything.
- Simple trigger firesevery day at 18:00 Europe/Berlin
- Compute the business datein the calendar's time zone, from a Clock
- Is a run due by the calendar?Yesclaim the business dateNodo nothing today
- Business date already claimed?Yesskip, log, doneNorun and record the calendar version
4 steps in order. Play them, or step through them one at a time.
Notice two things. The trigger stays trivial and the business rule lives in one tested place, the calendar. And the run records which calendar version it used, which is what makes the audit question answerable later. A central scheduler can apply the same check itself, so jobs on it simply declare 'last business day of the month in DE-NW-BANK at 18:00'.
5Company-Wide Standards
With the data and service in place, a short standard keeps teams consistent. Time zones are always named with IANA identifiers, such as Europe/Berlin, never offsets like +01:00, which ignore daylight saving. Jobs are not scheduled in the local transition window, typically 01:00 to 04:00 in zones with daylight saving, or are scheduled in UTC. Every date-based job is idempotent per business date and calendar, with a unique claim, so a rerun, a double trigger or a corrected calendar never applies the same date twice. And every job states in its documentation which calendar and which zone define its business date.
These rules are cheap to follow when the shared library and calendar service make them the default, and easy to check in design reviews: four questions cover them.
6Make Calendar Changes Auditable
A calendar change changes financial outcomes: adding a holiday moves payment dates, changes interest periods and can push deadlines. So calendars are versioned, with every change recorded with who made it, who approved it, why and from when it takes effect. Changes to the current or next month need a second approver from the owning function and a notification to the teams whose jobs use that calendar, so they can check the effect before it happens.
Because runs record the calendar version they used, we can answer an auditor's question about any past run, and we can tell exactly which runs a late correction affects. Over time, the measure of success is simple: the number of incidents caused by holidays and time zones, which should fall towards zero, and the time from a government announcing a holiday to every system knowing about it.
7Follow-up questions
Should every team call the calendar service at run time?
Not necessarily. Calendars change rarely, so a library that caches published calendar data, refreshed daily and versioned, gives the same answers without a network dependency. What matters is that there is one source, one owner and recorded versions, whether the access is a service call or a library.
Who should own the calendars, engineering or the business?
The business function that is accountable for settlement and operations dates should own the content, because it knows the rules and bears the cost of mistakes. Engineering owns the system that stores, versions and publishes them. Splitting it this way avoids engineers guessing holiday rules and operations editing YAML files.
How do you migrate teams off their own holiday lists?
Publish the calendars first, then ask teams to compare their lists with the published ones, which usually reveals differences and builds the case. Teams with financial jobs move first, with a deadline agreed by leadership; once the shared calendars exist, removing a local copy is a small change.
8Conclusion
In this answer, we treated business calendars across 30 countries as a data and governance problem. Cron cannot express irregular holidays, so calendars become owned, versioned reference data with identifiers. Times are stored and computed in UTC with local time used only for scheduling decisions and display. Jobs keep simple triggers and ask a calendar service or library whether a run is due, under standards for IANA zones, daylight saving windows and idempotency per business date, and every calendar change is approved, recorded and tied to the runs it affects.
Open with
I'd start by saying cron is the wrong place for business calendars. Holidays are irregular, they differ by country and even region, and they change every year, so hard-coding them in cron expressions or local lists guarantees drift and payments on holidays.
Then, if they want more
I'd treat calendars as shared reference data with an owner, typically the operations or treasury function for the content and a platform team for the system, with identifiers like DE-NW-BANK and next year's calendars published well in advance.
Second, a time rule: store and compute in UTC, and convert to local time only for scheduling decisions and display; each job's business date is computed explicitly in a named zone. Third, a calendar service or library that answers is this a business day, next business day, last business day of the month.
Schedulers keep simple daily triggers, and the job or the central scheduler asks the calendar whether a run is due. Fourth, standards: IANA zone names, no business jobs in the daylight saving window, and every date-based job idempotent per business date with a unique claim.
Finally, calendar changes are versioned and approved, and every run records the calendar version it used, because a calendar change changes financial outcomes and auditors will ask.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Batch reference
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your company operates in 30 countries and many scheduled processes depend on local...": https://scrivio-interview-library.netlify.app/spring-boot/scheduling/0c398e9332/