> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fincept.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Business Days Between

> Count the number of business days between two dates, excluding weekends and holidays according to the specified calendar. Returns the count excluding the start date but including the end date. Essential for accrual calculations, SLA tracking, and interest period determination. [Tier: FREE, Credits: 0]



## OpenAPI

````yaml api-specs/scheduling.json post /quantlib/scheduling/calendar/business-days-between
openapi: 3.1.0
info:
  title: FinceptQuantLib API - Scheduling
  description: Scheduling module endpoints for FinceptQuantLib API
  version: 3.0.0
  contact:
    name: Fincept API Support
    url: https://fincept.in
servers:
  - url: https://api.fincept.in
    description: Fincept API Production Server
security:
  - APIKeyHeader: []
tags:
  - name: quantlib-scheduling
    description: API endpoints for scheduling operations
paths:
  /quantlib/scheduling/calendar/business-days-between:
    post:
      tags:
        - quantlib-scheduling
      summary: Business Days Between
      description: >-
        Count the number of business days between two dates, excluding weekends
        and holidays according to the specified calendar. Returns the count
        excluding the start date but including the end date. Essential for
        accrual calculations, SLA tracking, and interest period determination.
        [Tier: FREE, Credits: 0]
      operationId: >-
        business_days_between_quantlib_scheduling_calendar_business_days_between_post
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - start_date
                - end_date
              properties:
                start_date:
                  type: string
                  format: date
                  description: Start date in ISO format (YYYY-MM-DD), excluded from count
                  example: '2024-01-02'
                end_date:
                  type: string
                  format: date
                  description: End date in ISO format (YYYY-MM-DD), included in count
                  example: '2024-01-31'
                calendar:
                  type: string
                  description: >-
                    Calendar to use for business day calculation. Options: US,
                    UK, TARGET, Japan, Weekend
                  default: US
                  enum:
                    - US
                    - UK
                    - TARGET
                    - Japan
                    - Weekend
                  example: US
            example:
              start_date: '2024-01-02'
              end_date: '2024-01-31'
              calendar: US
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      start_date:
                        type: string
                        format: date
                        description: The start date
                        example: '2024-01-02'
                      end_date:
                        type: string
                        format: date
                        description: The end date
                        example: '2024-01-31'
                      business_days:
                        type: integer
                        description: Number of business days between the two dates
                        example: 21
                      calendar:
                        type: string
                        description: The calendar used
                        example: US
              example:
                success: true
                data:
                  start_date: '2024-01-02'
                  end_date: '2024-01-31'
                  business_days: 21
                  calendar: US
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/InsufficientTierError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: array
                    items:
                      type: object
              example:
                detail:
                  - loc:
                      - body
                      - start_date
                    msg: field required
                    type: value_error.missing
      security:
        - APIKeyHeader: []
components:
  responses:
    UnauthorizedError:
      description: Authentication information is missing or invalid
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
                example: Invalid API key
    InsufficientTierError:
      description: API tier insufficient for this endpoint
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
                example: Endpoint requires Basic tier or higher
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get your key at
        https://api.fincept.in/auth/register

````