# WritersLogic Storage Charge Clock

> WritersLogic Storage Charge Clock is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Computes storage, demurrage, detention, or parking charges between a received date and a released date using configurable free-day counting, tiered per-day rates, and business or calendar day rules.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/storage-charge-clock?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-storage-charge-clock-63549dd7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U8ghWyQ2YvtHPS6mCx009

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 writerslogic-storage-charge-clock-63549dd7 -d '<json body>'
```

Example prompt: Calculate the storage charges for cargo received on 2024-03-01 and released on 2024-03-20, with 5 free calendar days, receipt day counts but release day does not, chargeable days are business days on the us-federal calendar, and a tiered rate of 1000 cents per day for days 1–5 and 2000 cents per day from day 6 onward — tell me the last free day, chargeable days, per-tier breakdown, and total in cents.

## When to prefer this

Use this endpoint when you need an auditable, rule-explicit calculation of storage, demurrage, detention, or parking charges where you control all counting rules (free day method, chargeable day method, receipt/release day inclusion). It is ideal for verifying third-party invoices or generating charges in logistics, freight, and warehouse contexts. It does not apply any carrier-specific tariff automatically — you must supply all rules — making it appropriate when you need full transparency and reproducibility over black-box tariff lookup.

## Known failure modes

- releasedOn is before receivedOn — returns validation error
- freeDays count exceeds the span between dates — may result in zero chargeable days
- calendar date range not supported by named holiday calendar — returns unsupported response
- first tier does not start at fromDay=1 — validation error
- invalid date format (not YYYY-MM-DD) — schema validation failure
- currency code not 3 uppercase letters — schema validation failure
- rateMinor negative or exceeds maximum — schema validation error
- claimedChargeMinor mismatch returns a flag indicating discrepancy but not necessarily an error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns the last free day (YYYY-MM-DD), total chargeable days, a per-tier breakdown showing which days fall into each rate band and the subtotal for each tier, and the overall total in integer minor units (e.g. cents). If a claimed charge total was provided, also returns whether it matches the computed total.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tiers": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fromDay",
     "rateMinor"
    ],
    "properties": {
     "fromDay": {
      "type": "integer",
      "maximum": 3650,
      "minimum": 1,
      "description": "Chargeable day number (1 = first day after free time) at which this rate starts; the first tier must start at 1."
     },
     "rateMinor": {
      "type": "integer",
      "maximum": 1000000000,
      "minimum": 0,
      "description": "Charge per day in minor units (cents)."
     }
    }
   },
   "maxItems": 20,
   "minItems": 1
  },
  "weekend": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 6,
    "minimum": 0
   },
   "maxItems": 6,
   "description": "Non-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend."
  },
  "calendar": {
   "enum": [
    "us-federal",
    "us-federal-reserve",
    "nyse",
    "us-equities-settlement",
    "uk-england-and-wales",
    "uk-scotland",
    "uk-northern-ireland",
    "weekends-only",
    "caller"
   ],
   "type": "string",
   "description": "Named holiday calendar with a source and supported date range (outside it the answer is unsupported), weekends-only (Saturday/Sunday only), or caller (only the holidays you list)."
  },
  "currency": {
   "type": "string",
   "pattern": "^[A-Z]{3}$",
   "maxLength": 3
  },
  "freeDays": {
   "type": "integer",
   "maximum": 3650,
   "minimum": 0
  },
  "holidays": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
    "maxLength": 10
   },
   "maxItems": 400,
   "description": "Extra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry)."
  },
  "receivedOn": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10
  },
  "releasedOn": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10
  },
  "freeCounting": {
   "enum": [
    "calendar",
    "business"
   ],
   "type": "string"
  },
  "chargeCounting": {
   "enum": [
    "calendar",
    "business"
   ],
   "type": "string",
   "description": "Whether chargeable days skip weekends/holidays."
  },
  "receiptDayCounts": {
   "type": "boolean",
   "description": "Whether the day of receipt is day 1."
  },
  "releaseDayCounts": {
   "type": "boolean",
   "description": "Whether the release day is counted."
  },
  "claimedChargeMinor": {
   "type": "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-storage-charge-clock-63549dd7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
