{"uid":"cap_hlx_mJ5ei8Q7TOKC17Ncj","slug":"agent402-uk-irr-calculator-newton-raphson-988d849d","name":"Agent402 UK IRR Calculator (Newton-Raphson)","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/irr?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"guess":{"type":"number","description":"Initial guess (default 0.1)"},"cashflows":{"type":"array","description":"Cashflows by period"}}},"responseSchema":{"type":"json","example":{"irr":0.228901,"converged":true}},"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_7o97KgvYXymkWZJm0uh0s","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 Internal Rate of Return for a cashflow series using the Newton-Raphson iterative method, returning IRR and convergence status.","exampleAgentPrompt":"Calculate the exact IRR for this cashflow series using Newton-Raphson: [-100000, 20000, 30000, 40000, 50000], starting with an initial guess of 0.1.","exampleUseCases":[{"title":"Private equity deal IRR check","prompt":"I need the precise IRR for this private equity deal — cashflows are [-500000, 80000, 120000, 150000, 200000, 250000]. Use an initial guess of 0.1 and give me the converged result."},{"title":"Real estate investment return analysis","prompt":"What's the internal rate of return on this property investment? The cashflows are [-300000, 15000, 15000, 15000, 15000, 350000]. I need the exact Newton-Raphson result, not an approximation."},{"title":"Project feasibility hurdle rate comparison","prompt":"Calculate the IRR for a project with cashflows [-200000, 50000, 75000, 90000, 60000] — I want the exact converged value so I can compare it against our 12% hurdle rate."}],"resultDescription":"Returns a JSON object containing 'irr' (the computed internal rate of return as a decimal, e.g. 0.228901) and 'converged' (a boolean indicating whether the Newton-Raphson algorithm successfully converged to a solution).","failureModes":["Non-convergence when cashflows have no sign change or multiple IRRs exist — converged returns false","Invalid cashflow array (empty or non-numeric values) — likely 400 error","Cashflow series where Newton-Raphson diverges — may return unconverged result or error","Payment failure via x402 protocol — 402 response before computation occurs"],"whenToPreferThis":"Use this endpoint when an AI agent must compute IRR with mathematical precision rather than relying on LLM approximation or token-based arithmetic. It is the right choice for financial analysis tasks where convergence guarantees matter, when the cashflow series has more than a few periods, or when the result will feed downstream financial decisions requiring accuracy. Prefer over manual agent math whenever exact IRR and a convergence indicator are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T21:27:58.697Z","isFirstParty":false,"canonicalSlug":"agent402-uk-irr-calculator-newton-raphson-988d849d"}