Calculators.Life Calculator
Time

Days Worked Calculator

Input Parameters

Scenarios
First date of the period in YYYY-MM-DD format
Last date of the period in YYYY-MM-DD format
Number of public holidays or approved leaves falling on standard working days
Regular working hours per day

Computed Results

Total Days Worked
23
Total Hours Worked184
Total Calendar Days in Period31
Weekend / Non-Work Schedule Days8

The days worked calculator determines the total number of working days and hours between a start and end date. It helps you quickly calculate net working time by automatically excluding weekends, custom non-working schedules, and specific holidays or approved leave days.

Practical Use Cases

Calculating exact working days is useful for project planning, payroll estimation, and tracking time off. Freelancers and contractors use it to estimate billable hours over a specific period. Project managers rely on it to determine how many actual work days are available before a deadline, accounting for weekends and public holidays. HR professionals and employees also use it to calculate prorated salaries or track attendance over a given month or year.

Formula & Explanation

The calculator determines the total calendar days between your start and end dates, then subtracts non-working days based on your selected schedule. Finally, it subtracts any additional holidays to find the net days worked.

Net Worked Days = Total Work Days − Additional Holidays
Total Hours Worked = Net Worked Days × Standard Hours Per Day

The calculator evaluates each day in the date range. Depending on the schedule selected, it identifies whether a day is a working day (e.g., Monday through Friday) or a non-working day (e.g., Saturday and Sunday). If you choose not to include the end date, the calculation stops one day prior.

Verified Scenario Walkthroughs

Here are examples of how different schedules and holidays affect the total days and hours worked.

Short Work Week with Holidays

Consider a period from February 5, 2024, to February 9, 2024, excluding weekends and including the end date. If there is 1 holiday and the standard day is 7.5 hours, the total calendar days are 5. With 0 weekend days and 1 holiday subtracted, the net worked days are 4, resulting in 30 total hours worked.

Long Term Project Excluding Sundays

For a project running from April 1, 2024, to June 30, 2024, where only Sundays are excluded and the end date is not included. The total calendar days are 90. There are 12 Sundays (weekend days) and 3 additional holidays. The net worked days are 75. At 6 hours per day, this totals 450 hours worked.

Yearly Calculation with High Holiday Count

If you calculate a full leap year from January 1, 2024, to December 31, 2024, excluding weekends and including the end date. The total calendar days are 366. There are 104 weekend days. Subtracting 12 holidays leaves 250 net worked days. At 8 hours per day, this equals 2,000 total hours worked.

How to Use the Calculator

Follow these steps to calculate your working days and hours:

  1. Start Date: Enter the first date of your period in YYYY-MM-DD format.
  2. End Date: Enter the last date of your period in YYYY-MM-DD format.
  3. Working Days Schedule: Select whether to exclude weekends, exclude only Sundays, or include all days.
  4. Include End Date?: Choose "yes" to count the end date as part of the period, or "no" to stop the calculation the day before.
  5. Additional Holidays: Enter the number of public holidays or approved leaves that fall on what would otherwise be standard working days.
  6. Standard Hours Per Day: Input your regular working hours per day to calculate total hours.

Inputs & Outputs

Input/Output Description
Start Date The first date of the period being calculated.
End Date The final date of the period being calculated.
Working Days Schedule The rule used to determine standard non-working days (e.g., excluding weekends).
Include End Date? Determines if the final date is counted in the total period.
Additional Holidays Specific non-working days subtracted from the total work days.
Standard Hours Per Day The number of hours worked on a standard day, used to calculate total hours.
Total Days Worked The final count of working days after subtracting weekends and holidays.
Total Hours Worked The total days worked multiplied by the standard hours per day.
Total Calendar Days The total number of days between the start and end dates.
Weekend / Non-Work Days The number of days excluded based on the selected working days schedule.

Frequently Asked Questions

Does the calculator account for leap years?

Yes, the calculator uses standard calendar dates, so it automatically includes February 29th when calculating date ranges that span a leap year.

What happens if I enter a start date that is after the end date?

The calculator will automatically reverse the dates to calculate the correct number of days between the two points in time.

Should I include holidays that fall on a weekend?

No. If you have selected a schedule that excludes weekends, you should only enter additional holidays that fall on standard working days. Entering a weekend holiday will incorrectly subtract an extra day from your total.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.