{"uid":"cap_ldwMZIofHjWOt5HwPHjQh","slug":"agent402-uk-net-present-value-npv-calculator-ed023459","name":"Agent402 UK – Net Present Value (NPV) Calculator","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/math/npv","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rate":{"type":"number","description":"Discount rate per period"},"cashflows":{"type":"array","description":"Cashflows by period"}}},"responseSchema":{"type":"json","example":{"npv":22.95393344269037}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_osC0PmMlgdN2i81aunakB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 series of cashflows given a discount rate per period","exampleAgentPrompt":"Calculate the net present value of this project for me: the discount rate is 8% per period and the cashflows are -10000 in year 0, 3000 in year 1, 4000 in year 2, 5000 in year 3, and 2000 in year 4.","exampleUseCases":[{"title":"Investment viability appraisal","prompt":"I'm evaluating whether to invest in a new warehouse. The upfront cost is £50,000 and I expect annual returns of £12,000, £15,000, £18,000, £14,000, and £10,000 over the next five years. Can you calculate the NPV using an 8% discount rate so I can see if the project adds value?"},{"title":"Comparing two project proposals","prompt":"I have two capex proposals to compare. Project A has cashflows of -200000, 60000, 70000, 80000, 90000 and Project B has -200000, 90000, 75000, 65000, 55000. Both use a 12% discount rate. Can you calculate the NPV for each so I know which is financially better?"},{"title":"Bond or loan repayment valuation","prompt":"I need to find the present value of a loan that pays back £5,000 at the end of each of the next four years, with an initial outflow of -£18,000. The discount rate is 6%. What's the NPV?"}],"resultDescription":"Returns the computed net present value (NPV) as a numeric result, representing the sum of all discounted cashflows. A positive NPV indicates the investment adds value; negative indicates it destroys value. The deterministic computation avoids the rounding and reasoning errors LLMs typically make with this calculation.","failureModes":["Missing 'rate' field — returns validation error","Missing or empty 'cashflows' array — returns validation error","Non-numeric values in cashflows array — returns error","Invalid discount rate (e.g. negative or extremely large) — may return unexpected result or error","Payment/x402 authentication failure — returns 402 Payment Required"],"whenToPreferThis":"Prefer this endpoint when you need a guaranteed-accurate NPV computation rather than an LLM's own arithmetic, especially for finance-critical decisions, audits, or when the cashflow series is long or irregular. Also prefer when you need a deterministic, reproducible result that can be logged or audited. Use over general-purpose math tools when the specific NPV/DCF formula is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T14:26:38.182Z","isFirstParty":false}