Hours, Time Cards and Decimal Hours
A shift is counted in whole minutes: end time minus start time, minus the unpaid break. When the end time is earlier than the start time, the shift is taken to end the next day and 24 hours are added, so 10:00 PM to 6:00 AM is 8 hours. A break longer than the shift gives zero, never a negative total.
Decimal hours are minutes divided by 60, shown with two decimal places: 7 hours 45 minutes is 7.75. Pay is worked out from the exact number of minutes, not from the rounded figure. The time card adds the minutes of every day first and converts once at the end, which avoids adding up seven rounding errors.
Overtime
Overtime is counted by the week. Hours up to the threshold are regular hours and the rest are overtime hours, paid at the regular rate times the multiplier. The English page starts from the United States federal rule, 40 hours a week at one and a half times the regular rate, and both numbers can be changed.
The calculator does not apply daily overtime, double time, state rules or the exemptions of the Fair Labor Standards Act. Those depend on the state, the job and the contract. The federal rule is described by the Wage and Hour Division of the U.S. Department of Labor.
U.S. Department of Labor: overtime pay
Dates, Working Days and Age
Dates are handled as calendar days in the proleptic Gregorian calendar, without a time of day, so a daylight saving change never adds or removes a day. The number of days between two dates is the number of midnights between them: from a Monday to the Friday of the same week is 4 days. Leap years follow the Gregorian rule: every fourth year, except century years that are not divisible by 400.
Working days are Monday to Friday, minus the public holidays of the chosen country that fall on those days. Adding months keeps the day of the month when it exists and otherwise stops at the last day: one month after January 31 is February 28, or February 29 in a leap year. Age is counted in completed years, months and days; a person born on February 29 has their birthday on March 1 in years without one.
Week Numbers
Week numbers follow ISO 8601. Weeks start on Monday and week 1 is the week that contains the first Thursday of the year, which is also the week of January 4. A year has 52 or 53 weeks, and the first days of January can belong to the last week of the previous year. Other numbering systems exist, such as the one used in the United States in which week 1 is the week of January 1; this site shows ISO weeks.
ISO 8601, date and time format
Public Holidays and Movable Dates
Holidays are computed from their legal rule, not copied from a list, so every year is available. Fixed holidays use their date. Movable ones use their rule, such as the fourth Thursday of November for Thanksgiving. Easter Sunday is found with the Gregorian computus in the form published by Meeus, Jones and Butcher, and Good Friday, Easter Monday, Ascension and Pentecost are counted from it.
The rules were checked against the official calendars of each country:
- United States: federal holidays, U.S. Office of Personnel Management (opm.gov).
- United Kingdom: bank holidays for England and Wales (gov.uk/bank-holidays).
- Germany: nationwide public holidays; holidays of single federal states are not included.
- France: jours fériés listed in article L3133-1 of the Code du travail (service-public.fr).
- Spain: national holidays published each year in the Boletín Oficial del Estado; regional holidays are not included.
- Italy, Brazil and the Netherlands: national public holidays set by law.
World Time and Time Zones
Times around the world come from the IANA Time Zone Database, through the copy built into your browser. The site does not keep its own table of offsets, so clock changes decided by a government reach the site when browsers update their data. The time shown is the time of your device, shifted to the chosen zone; if your device clock is wrong, the result is wrong by the same amount.
Sunrise and sunset on city pages use the standard sunrise equation with the sun’s upper edge on a flat horizon and average refraction. They are accurate to a minute or two away from the polar circles.
How the Results Are Tested
All tools share one calculation engine, and that engine is run against reference values before every release. If one check fails, the site is not published.
- Easter dates and ISO week numbers at year boundaries, compared with published tables.
- Clock-change dates for 2027 in Paris, New York and Sydney, compared with the time zone database.
- Leap days, month ends and year ends in date differences and in adding months.
- Shifts that pass midnight, with and without a break.
- Countdown dates on the day before, the day of and the day after each event.
- Sunrise and sunset in Paris and Sydney, compared with published almanac times.
Limits and Corrections
The tools do arithmetic. They do not give legal, payroll or tax advice, and a rule can change after a page was reviewed. Each page carries the date of its last review. If you find a result that does not match an official source, write to us with the values you entered and the result you expected: calculation errors are corrected first.