{"uid":"cap_LI26RA3Dus6xw1v7A1mIR","slug":"numora-roi-calculator-484170a4","name":"Numora ROI Calculator","description":"100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.","url":"https://numormo.vercel.app/api/financial/roi","method":"POST","headers":{},"bodySchema":{"type":"object","required":["cost","gain"],"properties":{"cost":{"type":"number"},"gain":{"type":"number"}}},"responseSchema":{"type":"object","required":["success","result","computation"],"properties":{"result":{"type":"object","description":"Computation result varies by endpoint"},"success":{"type":"boolean","description":"Always true on success"},"computation":{"type":"string","description":"Human-readable description of what was computed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6zubOhD1Bc-zBUGR6_lHe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes Return on Investment (ROI) given a cost and a gain value, returning the ROI percentage and related financial metrics.","exampleAgentPrompt":"Calculate the ROI for an investment where I spent $4,000 and got back $6,500 in total gain.","exampleUseCases":[{"title":"Evaluating a marketing campaign","prompt":"I ran a marketing campaign that cost $12,000 and brought in $18,500 in revenue — can you calculate the ROI for me?"},{"title":"Assessing a stock investment","prompt":"I bought stock for $2,500 and sold it for $3,800 total. What's my ROI on that trade?"},{"title":"Business equipment purchase analysis","prompt":"We spent $50,000 on new manufacturing equipment and it generated $72,000 in gains so far — what's the return on investment percentage?"}],"resultDescription":"Returns a JSON object with a 'success' boolean, a 'result' object containing the computed ROI (typically as a percentage and related metrics like net gain), and a 'computation' string describing in human-readable form what was calculated.","failureModes":["Missing required 'cost' field returns a validation error","Missing required 'gain' field returns a validation error","Non-numeric values for cost or gain cause a bad request error","Division by zero if cost is 0 may return an error or undefined result","Payment failure via x402 micropayment protocol returns 402 status"],"whenToPreferThis":"Use this endpoint when you need a fast, dependency-free server-side ROI computation given a numeric cost and gain — ideal for AI agents that need reliable financial math without spinning up a local calculator or calling a heavyweight financial API. Prefer this over general-purpose math APIs when the specific ROI formula with clear labeled output is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:54:46.026Z","isFirstParty":false}