The interview problem

Practice prompt

The customer uses a 4-4-5 calendar and your monthly dashboard disagrees with their reports. Define the reporting contract.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Obtain the customer-owned calendar table with period boundaries, timezone and exceptional weeks. Join timestamps to these explicit intervals instead of treating fiscal months as ordinary calendar months. Version the table and use half-open boundaries to avoid double counting.

2. Trace the design or derivation

UTC event
  → agreed local date
  → versioned fiscal interval
  → period aggregate

Do not invent a company’s extra-week rule from a general calendar convention. Store the approved table as data and review changes through the same process as other business definitions. The cited date APIs support representation; they do not supply the customer policy.

3. Calculate the example

A 4-4-5 quarter has 13 weeks or 91 days. Four such quarters total 364 days, so the annual calendar needs an explicit rule for alignment and occasional extra weeks.

4. Failure cases and trade-offs

Adding a fixed number of days to derive every future year drifts from the approved calendar. Week numbering differs across conventions, and timezone conversion can move boundary events.

5. Validation, follow-ups and self-review

Acceptance: reconcile boundary events and an extra-week year with finance-approved fixtures. Follow-up: can historical periods be restated? Self-review: identify the calendar owner and version.

Sources and related practice

Technical reference: docs.python.org — Date/time representation only; fiscal-calendar policy is customer-owned.

Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Agree on business-hour deadlines across time zones; Control drift in shared reference data.

Continue your preparation

Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.