{"uid":"cap_7V224niyi-Mm-O8lLXAjz","slug":"npv-net-present-value-calculator-7d29939a","name":"NPV (Net Present Value) Calculator","description":"Compute the net present value of a stream of cashflows at a given discount rate. Index 0 is treated as t=0 (today, not discounted); indices 1..n are discounted by (1+rate)^t. Matches Excel's NPV but with the conventional t=0 treatment most finance textbooks use (Excel itself starts discounting at t=1 - see notes). Use for capital-budgeting decisions: positive NPV = creates value at the discount rate; negative = destroys value.","url":"https://agent402.tools/api/npv","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cashflows":{"type":"array","description":"Array of cashflows. Index 0 = t=0 (today, not discounted). Negative = outflow, positive = inflow. 2-1200 elements."},"discountRate":{"type":"number","description":"Per-period discount rate as decimal (0.1 = 10%)"}}},"responseSchema":{"type":"json","example":{"npv":388.77,"discountRate":0.1,"presentValues":[-1000,272.73,330.58,375.66,409.81],"undiscountedSum":800}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_QZVQUloipHauxDOiYNdLM","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 of a cashflow stream at a specified per-period discount rate, treating index 0 as t=0 (undiscounted) and discounting subsequent cashflows by (1+rate)^t","exampleAgentPrompt":"What's the NPV of a project where I invest $10,000 today, then receive $3,000, $4,000, $4,500, and $2,000 over the next four years, using a 10% discount rate?","exampleUseCases":null,"resultDescription":"Returns the net present value (a single numeric value in the same currency units as the input cashflows), representing the sum of all discounted future cashflows minus the initial outlay. A positive NPV indicates the investment adds value; negative means it destroys value.","failureModes":["cashflows array has fewer than 2 or more than 1200 elements — returns validation error","discountRate not provided or is non-numeric — returns error","discountRate of -1 causes division by zero in denominator (1+rate)^t — likely error or undefined result","malformed JSON body — returns 400 bad request","payment not included or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a standards-compliant NPV calculation that matches Excel's NPV convention with a t=0 treatment — ideal for capital budgeting, investment appraisal, or any scenario where you need to discount a sequence of 2–1200 cashflows at a constant per-period rate. Prefer it over manual computation or spreadsheet tools when automating financial analysis in an agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:04.383Z","isFirstParty":false}