{"uid":"cap_Dp6YZmjIEhHFenfRsqRhr","slug":"citiview-calculator-math-unit-conversion-date-arithmetic-f933da63","name":"Citiview Calculator: Math, Unit Conversion & Date Arithmetic","description":"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.","url":"https://agents.citiviewgroup.com/v1/calc?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fBBVJEZK1elAZZ9iCsuQC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates math expressions, converts units across 11 categories, and performs date arithmetic (add, diff, weekday) in a single endpoint.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Unit conversion for a recipe","prompt":"I need to convert 3.5 cups to milliliters, and also tell me what 375 grams is in ounces."},{"title":"Business day deadline calculator","prompt":"How many business days are there between today, 2025-06-01, and my deadline on 2025-07-15? I need to know for project planning."},{"title":"Complex math expression evaluation","prompt":"Can you calculate (10! / (3! * 7!)) + 2^12 for me? I need the exact integer result."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:46:44.015Z","isFirstParty":false,"canonicalSlug":"citiview-calculator-math-unit-conversion-date-arithmetic-f933da63"}