Date duration and business days

Inclusive number of days between two dates, plus business days after optionally excluding weekends and 2026 US federal holidays, calendar weeks, weekend days, and holidays in the range. Results match the interactive calculator at everycalc.xyz; every response includes a calculator_url deep link to it.

get/api/v1/calculate/date-duration

Request

  • Base URL: https://everycalc.xyz
  • URL: https://everycalc.xyz/api/v1/calculate/date-duration
  • Auth: none declared

Query parameters

start_datestring required

Start date in YYYY-MM-DD format.

end_datestring required

End date in YYYY-MM-DD format.

exclude_weekendsboolean

Exclude Saturdays and Sundays from the business day count. The page has this checked by default.

exclude_holidaysboolean

Exclude 2026 US federal holidays from the business day count.

Response

Calculation result.

Changes

No recorded changes to this operation across all 1 revision of this API.