{"uid":"cap_U8ghWyQ2YvtHPS6mCx009","slug":"writerslogic-storage-charge-clock-63549dd7","name":"WritersLogic Storage Charge Clock","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/storage-charge-clock?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":"integer","maximum":9007199254740991,"minimum":0}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZO8yAq1KSqtJhehQInIZO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Verify container demurrage invoice","prompt":"I got a demurrage invoice claiming $1,850 for a container received on 2024-04-10 and released on 2024-04-25, with 7 calendar free days where the receipt day counts but release day doesn't, and a tiered rate of 5000 cents/day for days 1–5 then 10000 cents/day from day 6. Can you check if that total is correct using a calendar-day charge count?"},{"title":"Compute warehouse detention with US holidays","prompt":"Calculate warehouse detention fees for goods received January 2 and released January 22 2025, with 3 business free days using the us-federal holiday calendar, receipt day counts, release day does not count, charges skip weekends and federal holidays, and the rate is 2500 cents per day for every chargeable day — give me the last free day and total in cents."},{"title":"Tiered parking charge breakdown for port storage","prompt":"Work out port storage charges for cargo received 2024-06-01 and released 2024-06-30, using 10 calendar free days, both receipt and release days count, charge counting is calendar days, with tiers: 3000 cents/day for days 1–10, 6000 cents/day for days 11–20, and 9000 cents/day from day 21 onward — show me the per-tier breakdown and grand total."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:29.560Z","isFirstParty":false,"canonicalSlug":"writerslogic-storage-charge-clock-63549dd7"}