# Agent402 UK – Net Present Value (NPV) Calculator

> Agent402 UK – Net Present Value (NPV) Calculator is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.002/call, status down (last checked 2026-09-15).

Computes the net present value of a series of cashflows given a discount rate per period

## Facts

- Endpoint: POST https://agent402.co.uk/v1/math/npv
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-net-present-value-npv-calculator-ed023459
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ldwMZIofHjWOt5HwPHjQh

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 agent402-uk-net-present-value-npv-calculator-ed023459 -d '<json body>'
```

Example prompt: Calculate the net present value of this project for me: the discount rate is 8% per period and the cashflows are -10000 in year 0, 3000 in year 1, 4000 in year 2, 5000 in year 3, and 2000 in year 4.

## When to prefer this

Prefer this endpoint when you need a guaranteed-accurate NPV computation rather than an LLM's own arithmetic, especially for finance-critical decisions, audits, or when the cashflow series is long or irregular. Also prefer when you need a deterministic, reproducible result that can be logged or audited. Use over general-purpose math tools when the specific NPV/DCF formula is required.

## Known failure modes

- Missing 'rate' field — returns validation error
- Missing or empty 'cashflows' array — returns validation error
- Non-numeric values in cashflows array — returns error
- Invalid discount rate (e.g. negative or extremely large) — may return unexpected result or error
- Payment/x402 authentication failure — returns 402 Payment Required

## How this service works

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.

## Output

Returns the computed net present value (NPV) as a numeric result, representing the sum of all discounted cashflows. A positive NPV indicates the investment adds value; negative indicates it destroys value. The deterministic computation avoids the rounding and reasoning errors LLMs typically make with this calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rate": {
   "type": "number",
   "description": "Discount rate per period"
  },
  "cashflows": {
   "type": "array",
   "description": "Cashflows by period"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "npv": 22.95393344269037
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-net-present-value-npv-calculator-ed023459/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
