{"uid":"cap_PdsiMxrPvze90lw0Zegj0","slug":"x402toll-npv-irr-calculator-ab450a65","name":"x402toll NPV-IRR Calculator","description":"Net present value and internal rate of return for a cash-flow series (index 0 = today, usually a negative outlay), plus the profitability index and an accept/reject call.","url":"https://x402toll.com/v1/investing/npv-irr","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cashFlows":{"type":"array","items":{"type":"number"},"maxItems":600,"minItems":2},"discountRatePct":{"type":"number","default":10}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ptafUlkOZPkLxPdF_2qJE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes net present value (NPV), internal rate of return (IRR), profitability index, and accept/reject decision for a series of cash flows at a given discount rate.","exampleAgentPrompt":"Can you calculate the NPV and IRR for this project — the cash flows are -50000 today, then 15000, 18000, 22000, and 20000 over the next four years — using a 10% discount rate, and tell me whether we should accept it?","exampleUseCases":null,"resultDescription":"Returns the net present value (NPV) in currency units, the internal rate of return (IRR) as a percentage, the profitability index (PI), and an accept/reject recommendation based on whether NPV is positive and IRR exceeds the discount rate.","failureModes":["Fewer than 2 cash flows provided — schema requires minItems: 2","More than 600 cash flows provided — schema enforces maxItems: 600","IRR cannot be computed if cash flows never change sign (no internal rate exists), resulting in a null or error for IRR","Non-numeric values in the cashFlows array cause a validation error","Missing or malformed request body returns a 400-level error","Payment not included or insufficient USDC causes x402 payment-required response"],"whenToPreferThis":"Use this endpoint when you need a complete capital budgeting analysis — NPV, IRR, profitability index, and a clear accept/reject call — in a single API call. Prefer it over generic calculators when you need the profitability index and a structured go/no-go decision alongside the standard DCF metrics. Ideal for evaluating real estate investments, business projects, or any multi-period cash flow scenario where you have a known discount/hurdle rate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:36:47.222Z","isFirstParty":false}