Time/Timezone Utilities

Add Business Days

Calculates dates by adding business days (weekdays only) to any starting date, automatically skipping weekends. Use via MCP in Cursor or Windsurf for date arithmetic in scheduling workflows, or call GET /v1/time/add-business-days directly. Perfect for project timelines, SLA calculations, and delivery estimates where weekends don't count.

API Endpoint

GET /v1/time/add-business-days

Code Examples

curl "https://tinyfn.io/v1/time/add-business-days" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/time/add-business-days', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/time/add-business-days',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's time/timezone tools:

{
  "mcpServers": {
    "tinyfn-time": {
      "url": "https://tinyfn.io/mcp/time",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How does add business days handle weekends and holidays?

It skips weekends automatically but doesn't account for holidays by default. Only Saturday and Sunday are excluded from the business day count.

Can I add negative business days to go backwards in time?

Yes, use negative values to subtract business days. For example, -5 business days from Friday gives you the previous Friday.

What date format does the add business days API accept?

Accepts ISO 8601 format (YYYY-MM-DD) and common formats like MM/DD/YYYY. Returns dates in ISO format for consistency.

How do I use add business days in MCP tools for project scheduling?

In Cursor or Claude Code, specify your start date and business day count. Great for calculating delivery dates, sprint planning, and SLA deadlines that exclude weekends.

What happens if I add business days starting from a weekend?

The calculation treats weekend start dates as the next Monday, then adds your specified business days from that point forward.

Try Add Business Days Now

Get your free API key and start using Add Business Days in seconds.

Get Free API Key