Calculate workdays

Count Monday-through-Friday dates in an inclusive range without assuming a holiday calendar.

freeworks offlinenothing uploaded
ToolWorkdays Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The endpoints are ordered, then every UTC date in the inclusive interval is visited. Monday through Friday increase the working count; Saturday and Sunday increase the excluded count.

  • Both endpoints count when they are weekdays.
  • Public holidays remain included because jurisdiction and observed-day rules are not supplied.

Worked example

Business Days in Q1
Calculate business days in the first quarter of 2024
Input
											Input1: 2025-01-01
Input2: 2025-03-31
										
Output
												From: 2025-01-01
To:   2025-03-31

Business days: 64
Weekend days:  26
Total days:    90
Result:        64 business days
											

When to use this

Project estimates count weekdays before adding holidays, service desks measure Monday-to-Friday windows, and payroll checks count ordinary weekdays in a period.

Edge cases

  • A public holiday on Tuesday still counts because only weekend weekdays are excluded.
  • Reversed endpoints are swapped and produce the same inclusive count.
  • A one-day Saturday interval returns zero working days and one weekend day.