Cashflow mirr

cashflow-mirr · version 1.0.0 · Financial calculations · free, no key needed

MIRR of periodic cash flows from a finance rate and a reinvestment rate, with compounded and discounted totals.

Use when you need to: modified internal rate of return · MIRR with finance rate and reinvestment rate · Excel MIRR function equivalent.

Decide before calling

Read the versioned contract and the supported scope below. Reuse cashflow-mirr@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 cashflow-mirr@1.0.0 for modified internal rate of return. 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:

{
  "cash_flows": [
    "-120000",
    "39000",
    "30000",
    "21000",
    "37000",
    "46000"
  ],
  "finance_rate": "0.10",
  "reinvest_rate": "0.12",
  "rate_scale": 4
}

Response:

{
  "result": {
    "mirr": "0.1261",
    "fv_positive": "217297.50",
    "pv_negative": "-120000.00"
  }
}

How to call it

MCP

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

{
  "id": "cashflow-mirr",
  "version": "1.0.0",
  "input": {
    "cash_flows": [
      "-120000",
      "39000",
      "30000",
      "21000",
      "37000",
      "46000"
    ],
    "finance_rate": "0.10",
    "reinvest_rate": "0.12",
    "rate_scale": 4
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/cashflow-mirr/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"cash_flows":["-120000","39000","30000","21000","37000","46000"],"finance_rate":"0.10","reinvest_rate":"0.12","rate_scale":4}'

The machine-readable contract is at /v1/tools/cashflow-mirr/versions/1.0.0.

CLI

node cli.mjs run cashflow-mirr 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.