Locale-aware

Date calculatorSG · en-SG

Work with Gregorian calendar dates, not clock instants, and make the market’s weekend convention visible.

Difference
Optional. Enter verified dates as YYYY-MM-DD, separated by spaces, commas, or new lines. Rigula does not insert a country holiday list.

First day of week: .Weekend: .Time-zone basis: date-only values have no time zone; UTC is used only for stable display.Business days exclude the visible weekend and only the dates you enter.

Ready.

Calculated only in this browser.

How to use it

Use difference mode for signed day and workday counts, or add/subtract mode for whole calendar durations.

  1. Choose difference or add/subtract mode and enter valid calendar dates.
  2. For a difference, decide whether the end date is included.
  3. Optionally enter verified public holidays or other excluded dates in YYYY-MM-DD form.
  4. For arithmetic, enter whole years, months, weeks, and days; inspect the clamped result.

Worked example

Input
28 February 2024 to 1 March 2024
Output
2 calendar days; 3 when the end date is included

The leap day is counted. Business days follow the visible market weekend.

Method and definitions

  • Dates become integer UTC epoch days, avoiding daylight-saving shifts while preserving the calendar date.
  • Month/year arithmetic clamps to the last valid day, so 31 January + 1 month becomes the final day of February.
  • CLDR week data supplies first-day and weekend defaults; India uses a Sunday-only weekend in this data.
  • Business-day counts remove the visible weekend and a deduplicated set of user-entered excluded dates; weekend holidays are not counted twice.

Limits and edge cases

  • No time-of-day or time-zone conversion is performed; these are date-only calculations.
  • No statutory holiday calendar is built in. Verify and enter the applicable country, state, city, employer, and year-specific dates yourself.
  • The Gregorian calendar is used and spans are limited to one million days.

Privacy

Dates stay in the browser and are not sent to a calendar service.