Daykite
Answers

Dates, durations and business days

Date arithmetic looks trivial and is full of edge cases: months have different lengths, weeks start on different days in different countries, and 'two business days' means different things depending on where the person counting lives.

Why is 2100 not a leap year?

Because century years are only leap years when they divide by 400, and 2100 does not. The rule keeps the calendar aligned with the solar year, which is about 365.2425 days rather than 365.25.

What is ISO 8601?

ISO 8601 is the international standard for writing dates and times — 2026-03-14T15:00:00Z — ordered from largest unit to smallest. It sorts correctly as plain text and is unambiguous between regions, which is why software uses it.

Why is 03/04/2026 ambiguous?

Because it is 3 April in most of the world and 4 March in the United States. Any date written with slashes and no month name is a guess, which is why ISO format or a written month is safer in anything crossing borders.

What is a week number?

A week number identifies a week within the year, from 1 to 52 or 53. Under ISO 8601, week 1 is the week containing the first Thursday of January, so early January can fall in the last week of the previous year.

Which day does the week start on?

Monday under ISO 8601 and across most of Europe; Sunday in the United States, Canada, Japan and much of the Middle East. Calendars should follow the reader's locale, and reports should say which they used.

How many weeks are in a year?

52 weeks and one day, or two days in a leap year. That is why some years contain 53 ISO weeks and why a weekly event does not land on the same date each year.

How do I add months to a date correctly?

Add the month, then clamp the day to the end of the target month — 31 January plus one month is 28 or 29 February. Systems that do not clamp roll over into March, which is a well-known source of quiet errors.

How do I calculate an age in years?

Subtract the birth year, then subtract one more if the birthday has not yet occurred this year. Comparing month and day rather than day-of-year avoids leap-year mistakes.

Why is a day not always 24 hours?

Because daylight saving makes one day 23 hours and another 25. Adding 24 hours is therefore not the same as adding a day, and code that assumes it is breaks twice a year.

How do I calculate a deadline in business days?

Start from the next business day after the trigger, then count forward, skipping weekends and holidays. Whether the start day counts is a convention worth stating explicitly in any contract.

What is a quarter and when does it start?

A quarter is three months of a financial year. Q1 is January to March on a calendar year, but April to June for an organisation whose year starts in April, so a quarter needs its year stated.

What is the 24-hour clock?

The 24-hour clock runs from 00:00 to 23:59 with no am or pm, and is standard in most of the world and in all aviation and medicine. It removes the midnight and noon ambiguity entirely.

How many days are in each month?

31 for January, March, May, July, August, October and December; 30 for April, June, September and November; 28 for February, or 29 in a leap year.

What is a Unix timestamp?

A Unix timestamp counts seconds since 1 January 1970 UTC, with no time zone of its own. It is unambiguous, which is why it is stored, and unreadable, which is why it is never displayed.

What is the year 2038 problem?

Systems storing Unix timestamps in a signed 32-bit integer overflow in January 2038. Modern systems use 64-bit timestamps, but the problem persists in old embedded software and some databases.

What does 'next Friday' mean?

It is genuinely ambiguous — the coming Friday to some people, the one after to others. Any arrangement more than three days out is safer with a date attached.

How do public holidays differ between countries?

Enormously: the UK has about 8, India has dozens varying by state, and the dates of Easter, Eid and Lunar New Year move each year. Assuming a working day in another country is a reliable way to schedule into a holiday.

Which public holidays move each year?

Easter and everything anchored to it, Eid al-Fitr and Eid al-Adha, Lunar New Year, Diwali, Thanksgiving, and every holiday observed on 'the first Monday in' a month. Only a maintained holiday calendar gets these right.

More answers

Daykite

Daykite is a calendar that holds meetings, routines, tasks and goals together, with an assistant that shows you every change before it makes it. Free for one person.

Try the free tools · See pricing