# Citiview Calculator: Math, Unit Conversion & Date Arithmetic

> Citiview Calculator: Math, Unit Conversion & Date Arithmetic is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-14).

Evaluates math expressions, converts units across 11 categories, and performs date arithmetic (add, diff, weekday) in a single endpoint.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/calc?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-calculator-math-unit-conversion-date-arithmetic-f933da63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dp6YZmjIEhHFenfRsqRhr

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 citiview-calculator-math-unit-conversion-date-arithmetic-f933da63
```

Example prompt: What is 7! + 2^8 - sqrt(144)? Also, can you convert 250 pounds to kilograms and tell me how many business days there are between 2025-01-15 and 2025-03-31?

## When to prefer this

Choose this endpoint when you need precise, server-side calculation of math expressions (including factorials, powers, and functions), authoritative unit conversion across 11 measurement categories, or reliable date arithmetic with business-day awareness — all in one API call at a very low cost per request. Prefer it over client-side computation when audit trails, consistency, or a neutral third-party calculator result is needed.

## Known failure modes

- Invalid or malformed math expression returns an error
- Unsupported unit combination (e.g. mass to length) returns an error
- Missing required parameters (type, method) returns a 400 error
- Invalid date format returns a parse error
- Unrecognized date_op value returns an error
- Payment not provided or insufficient returns a 402 response

## How this service works

Exact calculator for agents: math expressions (functions, powers, factorials), unit conversion (length, mass, volume, area, time, speed, data, energy, pressure, power, temperature) and date arithmetic (add, diff with business days, weekday). Also callable as GET with the same fields as query parameters.

## Output

Returns a computed result for the requested operation: a numeric value for math expressions or unit conversions (with units labelled), a date string or count for date arithmetic operations, and a weekday name for weekday lookups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string",
       "description": "Unit"
      },
      "date": {
       "type": "string"
      },
      "days": {
       "type": "integer"
      },
      "expr": {
       "type": "string",
       "description": "Math expression"
      },
      "from": {
       "type": "string",
       "description": "Unit"
      },
      "date2": {
       "type": "string"
      },
      "value": {
       "type": "number"
      },
      "years": {
       "type": "integer"
      },
      "months": {
       "type": "integer"
      },
      "date_op": {
       "type": "string",
       "description": "add | diff | weekday"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-calculator-math-unit-conversion-date-arithmetic-f933da63/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
