# WritersLogic ISDA Day-Count Year Fraction & Proration Calculator

> WritersLogic ISDA Day-Count Year Fraction & Proration Calculator 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 year fractions and optional prorated charges for up to 100 half-open date ranges using named ISDA day-count conventions (2006 ISDA Definitions Section 4.16).

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/proration?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-isda-day-count-year-fraction-proration-calculator-a823bbf6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5EUbXlMelRmSl6D7xyzlJ

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-isda-day-count-year-fraction-proration-calculator-a823bbf6 -d '<json body>'
```

Example prompt: Using ACT/ACT-ISDA convention, calculate the year fraction for the range 2024-03-15 to 2024-09-15, and prorate a $1200 annual charge — the billing period runs from 2024-01-01 to 2025-01-01, rounding half-up.

## When to prefer this

Choose this endpoint when you need precise, standards-compliant ISDA day-count year fractions (2006 ISDA Definitions) for financial calculations such as interest accrual, bond coupon periods, or subscription proration — especially when you need to handle multiple date ranges in a single call and require specific conventions like 30E/360-ISDA or ACT/ACT-ISDA. Prefer it over generic date-arithmetic utilities when regulatory or contractual ISDA compliance matters, or when you need built-in proration arithmetic (amount × fraction(range) / fraction(period)).

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns a validation error
- end date preceding start date returns an error for that item
- ACT/ACT-ICMA convention specified returns an unsupported-convention error
- 30E/360-ISDA with a range ending on the last day of February without terminationDate returns an indeterminate/unknown result or error
- More than 100 items in the array returns a 400 validation error
- Invalid convention enum value returns a validation error
- Malformed amount string returns a validation error

## How this service works

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

## Output

For each submitted item, the API returns the computed year fraction as a decimal under the specified ISDA convention, and if an amount and optionally a billing period were provided, the prorated monetary charge in the given currency rounded to the requested minor-unit precision. Results are returned in the same order as the input array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "start",
     "end",
     "convention"
    ],
    "properties": {
     "end": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Exclusive end: the day after the last day included. Must not precede start."
     },
     "start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Calendar date YYYY-MM-DD."
     },
     "amount": {
      "type": "string",
      "pattern": "^-?\\d{1,15}(\\.\\d{1,12})?$",
      "maxLength": 30,
      "description": "Optional amount to prorate (annual amount without `period`; period amount with it)."
     },
     "period": {
      "type": "object",
      "required": [
       "start",
       "end"
      ],
      "properties": {
       "end": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
        "description": "Calendar date YYYY-MM-DD."
       },
       "start": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
        "description": "Calendar date YYYY-MM-DD."
       }
      },
      "description": "Full billing period [start, end); the charge is amount x fraction(range) / fraction(period).",
      "additionalProperties": false
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 alphabetic code, upper case."
     },
     "exponent": {
      "type": "integer",
      "maximum": 8,
      "minimum": 0
     },
     "rounding": {
      "enum": [
       "half-up",
       "half-down",
       "half-even",
       "up",
       "down",
       "ceiling",
       "floor"
      ],
      "type": "string",
      "description": "Rounding of the charge to the currency's minor unit. Default half-up. half-up: ties away from zero. half-down: ties toward zero. half-even: ties to the even neighbour. up: away from zero. down: toward zero. ceiling: toward +infinity. floor: toward -infinity."
     },
     "convention": {
      "enum": [
       "1/1",
       "30/360",
       "30E/360",
       "30E/360-ISDA",
       "ACT/365F",
       "ACT/360",
       "ACT/ACT-ISDA",
       "ACT/ACT-ICMA"
      ],
      "type": "string"
     },
     "terminationDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Termination date of the transaction; only used by 30E/360-ISDA."
     }
    },
    "additionalPropertie
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-isda-day-count-year-fraction-proration-calculator-a823bbf6/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)
