Daycount year fraction

daycount-year-fraction · version 1.0.0 · Financial calculations · free, no key needed

Year fraction between two ISO dates under ISDA 30/360, 30E/360, ACT/360, ACT/365F, ACT/ACT ISDA or ICMA, and NL/365.

Use when you need to: day count fraction between dates · year fraction 30/360 · actual/actual ISDA year fraction.

Decide before calling

Read the versioned contract and the supported scope below. Reuse daycount-year-fraction@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use daycount-year-fraction@1.0.0 for day count fraction between dates. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "start_date": "2003-11-01",
  "end_date": "2004-05-01",
  "convention": "act-act-isda",
  "rate_scale": 6
}

Response:

{
  "result": {
    "year_fraction": "0.497724",
    "numerator": "66491",
    "denominator": "133590",
    "day_count": 182,
    "actual_days": 182,
    "convention": "act-act-isda"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "daycount-year-fraction",
  "version": "1.0.0",
  "input": {
    "start_date": "2003-11-01",
    "end_date": "2004-05-01",
    "convention": "act-act-isda",
    "rate_scale": 6
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/daycount-year-fraction/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"start_date":"2003-11-01","end_date":"2004-05-01","convention":"act-act-isda","rate_scale":6}'

The machine-readable contract is at /v1/tools/daycount-year-fraction/versions/1.0.0.

CLI

node cli.mjs run daycount-year-fraction 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.