{"uid":"cap_DUvLo3WWUtVGZx2UyB_Kt","slug":"numora-roi-calculator-financial-math-api-d2a4e77d","name":"Numora ROI Calculator — Financial Math API","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://numomo.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_84k41Cs0N-tds1kHDVD-q","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 gain value, returning the ROI percentage and related computation details.","exampleAgentPrompt":"Calculate the ROI for me — I spent $800 on a marketing campaign and brought in $1,200 in revenue from it.","exampleUseCases":[{"title":"Marketing campaign profitability check","prompt":"I ran a Facebook ad campaign that cost $350 and generated $920 in sales. What was the ROI on that campaign?"},{"title":"Real estate investment return","prompt":"I bought a property for $150,000 and sold it for $195,000. Can you calculate the ROI on that investment?"},{"title":"Product launch cost-benefit analysis","prompt":"We spent $5,000 developing and launching a new product and made $8,500 in its first quarter. What's the return on investment?"}],"resultDescription":"Returns a JSON object with a 'success' boolean, a 'result' object containing the computed ROI value (typically as a percentage), and a 'computation' string describing in plain English what was calculated (e.g. 'ROI of 50% based on cost $100 and gain $150').","failureModes":["Missing required 'cost' or 'gain' field returns a validation error","Cost of zero may cause division-by-zero or NaN result","Non-numeric input types rejected with schema validation error","Payment failure via x402 results in 402 Payment Required response before computation","Server-side error on the Vercel deployment may return 500 with no result"],"whenToPreferThis":"Choose this endpoint when you need a fast, serverless, dependency-free computation of ROI from raw cost and gain numbers. Ideal for AI agents that need a reliable math microservice without building the formula themselves, especially when x402 micropayment billing per call is acceptable. Prefer this over general-purpose code execution or LLM-calculated math when you need a guaranteed, consistent numeric result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:55:07.305Z","isFirstParty":false}