About this tool
Working day calculation is essential for Agile sprint planning, civil construction milestone forecasting, commercial contract grace period enforcement, and financial banking settlements (T+1 / T+2 rolling delivery). Simple calendar arithmetic fails by conflating calendar days with productive business hours. This tool accounts for weekend exclusions, Saturday/Sunday filters, and statutory holiday shifts to compute exact working days between dates or project target deadlines locally.
How to Use This Tool (Step-by-Step)
Select Dates or Target Days
Choose calculation mode: 'Count workdays between two dates' or 'Add N working days to find delivery deadline'.
Configure Weekend Rules & Filters
Configure weekend policies: Standard 5-day week (Sat/Sun off), 6-day week (Sun off only), or custom schedule.
Inspect Calendar Schedule & Export
The engine runs day-by-day temporal evaluations, highlighting working days on an interactive calendar matrix. Copy the schedule summary with one click.
Bidirectional Forward & Reverse Scheduling
Counts net business days between milestones, or answers 'given a 15-workday backlog starting Monday, what is our target ship date?'
Custom Weekend Policy Matrix
Toggles any combination of off-days across the week to match manufacturing 6-day shifts or modern 5-day corporate hours.
100% Client-Side Air-Gapped
Calculations run exclusively within local browser memory. Sensitive tender bid milestones and internal sprints remain 100% private.
Project Timeline Planning & Legal Delivery Tips
- •Contracts must disambiguate 'business days' vs 'calendar days': 'Payment within 15 days' triggers litigation. State '15 working days' explicitly.
- •T+1 banking settlement weekend rolls: Initiating wire transfers on Fridays rolls T+1 settlements to Tuesday because international clearing stops over weekends.
- •Add a 15% buffer onto computed workdays: Professional project managers pad pure business days by 15% to absorb unexpected team absences.
Code & Transformation Examples
Calendar Days vs Business Workdays Benchmark
• 起始日期 : 2026年9月1日 (星期二)
• 结束日期 : 2026年9月30日 (星期三)
• 跨度自然日 : 整整 30 个自然日 (含 4 个完整周末共 8 天公休)• 实际有效工作日 : 22 天
• 周末公休天数 : 8 天
• 生产工时占比 : 73.33%* A 30-day month only delivers 21–22 productive working days; scheduling against 30 natural days causes severe project delays.
JavaScript Working Days Calculation Implementation
function addWorkdays(startDate, workdays) {
let cur = new Date(startDate);
let added = 0;
while (added < workdays) {
cur.setDate(cur.getDate() + 1);
const day = cur.getDay();
// 0 是周日,6 是周六
if (day !== 0 && day !== 6) {
added++;
}
}
return cur;
}// 假设从周五开始算 1 个工作日
console.log(addWorkdays(new Date('2026-09-18'), 1));
// 自动跨过周六周日,准确输出周一: '2026-09-21'* `getDay()` cleanly catches weekend indices 0 and 6, rolling delivery milestones forward to Mondays.
Frequently Asked Questions
Q: What is the difference between including vs excluding the start day?
A: This is the classic boundary fencepost problem. An action starting Monday morning and ending Monday evening is 1 day inclusive, but 0 days via subtraction.
Q: How are weekend makeup working days handled?
A: Some national policies designate makeup working Saturdays prior to golden weeks. The tool supports custom dates to override weekend exceptions.
Q: Can I calculate business days across historical past years?
A: Yes. The Gregorian temporal engine supports backward historical audit analyses and forward decadal forecasts with equal sub-millisecond precision.