# Business Utils Agent – ROI Calculator

> Business Utils Agent – ROI Calculator is a paid API for AI agents from business-utils-agent.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Calculates Return on Investment (ROI) given a cost and a gain, returning the ROI ratio and percentage.

## Facts

- Endpoint: POST https://business-utils-agent.up.railway.app/kpi/roi
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-utils-agent-roi-calculator-f28cdfd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h3Kd1VpiqIG5KlMNlg8le

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 business-utils-agent-roi-calculator-f28cdfd8 -d '<json body>'
```

Example prompt: Can you calculate the ROI for a campaign where we spent $5,000 and generated $12,500 in profit — what's the return on investment ratio and percentage?

## When to prefer this

Use this endpoint when you need a quick, reliable ROI ratio and percentage from a known cost and gain figure. It is ideal for agents automating business reporting, KPI dashboards, or financial decision support where ROI is a required metric. Prefer this over spreadsheet calculations when building automated pipelines or when other KPI endpoints on this service are already in use.

## Known failure modes

- Missing 'cost' or 'gain' fields — returns a validation or 400 error
- Cost of zero causing division-by-zero — may return an error or undefined result
- Non-numeric inputs for cost or gain — likely returns a 422 or parsing error
- Negative gain inputs (loss scenarios) — may return a negative ROI, check if supported
- Service downtime on Railway hosting — returns 503 or connection timeout

## How this service works

A comprehensive business utilities agent offering KPI calculations, ROI analysis, profit margin calculations, customer acquisition cost analysis, churn rate calculations, and AI-powered business plan reviews.

## Output

Returns a JSON object with two fields: 'roi' (a decimal ratio, e.g. 1.5 meaning 150% return) and 'percentage' (the ROI expressed as a percentage, e.g. 150). Both represent how much return was achieved relative to the cost.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cost": {
   "type": "number",
   "description": "Cost or initial investment amount"
  },
  "gain": {
   "type": "number",
   "description": "Gain or profit from the investment"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "roi": 1.5,
  "percentage": 150
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/business-utils-agent-roi-calculator-f28cdfd8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from business-utils-agent.up.railway.app](https://www.zero.xyz/host/business-utils-agent.up.railway.app/llms.txt)
