# Numora ROI Calculator — Financial Math API

> Numora ROI Calculator — Financial Math API is a paid API for AI agents from numomo.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-16).

Computes Return on Investment (ROI) given a cost and gain value, returning the ROI percentage and related computation details.

## Facts

- Endpoint: POST https://numomo.vercel.app/api/financial/roi
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/numora-roi-calculator-financial-math-api-d2a4e77d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DUvLo3WWUtVGZx2UyB_Kt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability numora-roi-calculator-financial-math-api-d2a4e77d -d '<json body>'
```

Example prompt: Calculate the ROI for me — I spent $800 on a marketing campaign and brought in $1,200 in revenue from it.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "cost",
  "gain"
 ],
 "properties": {
  "cost": {
   "type": "number"
  },
  "gain": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/numora-roi-calculator-financial-math-api-d2a4e77d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from numomo.vercel.app](https://www.zero.xyz/host/numomo.vercel.app/llms.txt)
