{"uid":"cap_GWiAtAmqt3UZQLKWVxC0S","slug":"finmath-npv-calculator-781e06d1","name":"finmath NPV Calculator","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/npv","method":"POST","headers":{},"bodySchema":{"type":"object","required":["rate","cashflows"],"properties":{"rate":{"type":"number","description":"rate"},"cashflows":{"type":"array","description":"cashflows"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"rate":0.1,"cashflows":[-50000,15000,20000,25000,20000]},"response":{"meta":{"tool":"npv","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":12608.428386039188}},"exampleRequest":{"rate":0.1,"cashflows":[-50000,15000,20000,25000,20000]},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qSSHVw6PUBehzrQ9KuLZl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Net Present Value (NPV) of a series of cash flows at a given discount rate using exact arithmetic","exampleAgentPrompt":"Calculate the NPV of an investment with a 10% annual discount rate and the following cash flows: year 0 is -50000, year 1 is 15000, year 2 is 20000, year 3 is 25000, and year 4 is 20000.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'result' field containing the computed NPV value and a 'meta' field with computation metadata such as timing or model details.","failureModes":["Missing required 'rate' field returns a 400-level error","Missing or empty 'cashflows' array returns a 400-level error","Non-numeric values in cashflows array may cause a validation error","Payment failure (insufficient USDC balance) blocks execution with 402 response"],"whenToPreferThis":"Use this endpoint when you need exact, deterministic NPV calculations that LLMs tend to get wrong due to floating-point approximations. Prefer over LLM-native math when precision matters for investment decisions, financial modeling, or auditable results. Best for agents doing capital budgeting, project valuation, or loan analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:34:11.898Z","isFirstParty":false}