Interest accrual compute

interest-accrual-compute · version 1.0.0 · Financial calculations · free, no key needed

Simple or compound (periodic or continuous) interest over a term in years or a dated span with a day-count basis.

Use when you need to: simple interest on a principal · compound interest calculator · continuous compounding interest.

Decide before calling

Read the versioned contract and the supported scope below. Reuse interest-accrual-compute@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 interest-accrual-compute@1.0.0 for simple interest on a principal. 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:

{
  "principal": "1500",
  "annual_rate": "0.043",
  "method": "compound",
  "compounding": 4,
  "years": "6"
}

Response:

{
  "result": {
    "interest": "438.84",
    "ending_amount": "1938.84",
    "year_fraction": "6.0000000000",
    "effective_annual_rate": "0.0436983575"
  }
}

How to call it

MCP

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

{
  "id": "interest-accrual-compute",
  "version": "1.0.0",
  "input": {
    "principal": "1500",
    "annual_rate": "0.043",
    "method": "compound",
    "compounding": 4,
    "years": "6"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/interest-accrual-compute/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"principal":"1500","annual_rate":"0.043","method":"compound","compounding":4,"years":"6"}'

The machine-readable contract is at /v1/tools/interest-accrual-compute/versions/1.0.0.

CLI

node cli.mjs run interest-accrual-compute 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.