77trust / 100

Calc Finance

by manylives.me in Markets & finance

x402 APIPassing, checked 2 h ago

Exact finance maths: loan repayment and total interest, compound growth with regular contributions, NPV and IRR of cash flows, and ROI with annualised return.

GET https://manylives.me/paid/calc/finance

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
486 ms typical, 592 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://manylives.me/paid/calc/finance?op=loan&principal=400000&rate=6&years=30"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmanylives.me%2Fpaid%2Fcalc%2Ffinance
const res = await pay("https://manylives.me/paid/calc/finance?op=loan&principal=400000&rate=6&years=30");
console.log(await res.json());

Example input

{
  "op": "loan",
  "principal": "400000",
  "rate": "6",
  "years": "30"
}

Example output

{
  "op": "loan",
  "payment": 1798.65,
  "total_interest": 247514,
  "total_paid": 647514
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402389 ms$0.002
6 h agoPassed402494 ms$0.002
10 h agoPassed402580 ms$0.002
14 h agoPassed402478 ms$0.002
18 h agoPassed402382 ms$0.002
21 h agoPassed402486 ms$0.002
25 h agoPassed402487 ms$0.002
28 h agoPassed402507 ms$0.002
32 h agoPassed402534 ms$0.002
36 h agoPassed402353 ms$0.002
39 h agoPassed402683 ms$0.002
43 h agoPassed402418 ms$0.002
46 h agoPassed402580 ms$0.002
2 days agoPassed402592 ms$0.002
2 days agoPassed402399 ms$0.002