Loan apr compute

loan-apr-compute · version 1.0.0 · Financial calculations · free, no key needed

APR of an equal-payment loan net of prepaid fees under US Reg Z or the EU consumer credit directive.

Use when you need to: APR of a loan with origination fee · annual percentage rate including prepaid finance charges · Regulation Z APR calculation.

Decide before calling

Read the versioned contract and the supported scope below. Reuse loan-apr-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 loan-apr-compute@1.0.0 for APR of a loan with origination fee. 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:

{
  "method": "us-reg-z",
  "principal": "5000",
  "payment": "166.07",
  "periods": 36,
  "rate_scale": 4
}

Response:

{
  "result": {
    "apr": "0.1200",
    "periodic_rate": "0.0100",
    "amount_financed": "5000.00",
    "finance_charge": "978.52",
    "total_of_payments": "5978.52",
    "method": "us-reg-z"
  }
}

How to call it

MCP

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

{
  "id": "loan-apr-compute",
  "version": "1.0.0",
  "input": {
    "method": "us-reg-z",
    "principal": "5000",
    "payment": "166.07",
    "periods": 36,
    "rate_scale": 4
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/loan-apr-compute/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"method":"us-reg-z","principal":"5000","payment":"166.07","periods":36,"rate_scale":4}'

The machine-readable contract is at /v1/tools/loan-apr-compute/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.