Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Calculate year fraction 30 360 us

finance.year_fraction_30_360_us

ProductionEngine wrapper (Class A)Deterministicstrictinstantv1.0.0
No network

Overview

Calculate explicit year fraction 30 360 us from ordered ISO dates under an explicit closed profile, returning an auditable decimal receipt without hidden schedule, calendar, locale, or wall-clock state.

We provide pinned day-count arithmetic without hidden schedule assumptions.

Reliability

DAY_COUNT_INPUT_INVALID means dates, endpoint rule, or profile are unsupported.

Context footprint

The compact receipt replaces prompt date arithmetic. A successful call costs 1 execution credit.

When to use it

When both dates must follow US 30/360 month-end rules without an Actual numerator.

When you need Actual/360, Actual/365F, or European 30E/360 rather than US 30/360.

Powered by OpenGamma Strata 2.12.73 day-count definitions.

Scope

Note
Calculate explicit year fraction 30 360 us from ordered ISO dates under one explicit closed convention, returning a compact auditable receipt without schedule inference or hidden calendar state.

Non-goals

  • Does not infer a day-count profile.
  • Does not accept schedule-dependent Actual/Actual ICMA.

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

math

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input64 KB

How we handle your data

Sensitive input, safe output
What this means

This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
startDatestringYesRequired closed startDate field.
endDatestringYesRequired closed endDate field.

Output schema

FieldTypeRequiredDescription
yearFractionstringYesDeterministic day-count output receipt field yearFraction.
syntheticDayCountintegerYesDeterministic day-count output receipt field syntheticDayCount.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"finance.year_fraction_30_360_us","input":{"startDate":"2026-01-01","endDate":"2026-07-01"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("finance.year_fraction_30_360_us", {"startDate":"2026-01-01","endDate":"2026-07-01"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
DAY_COUNT_INPUT_INVALID400NoThe request payload failed this skill's input validation.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not infer a day-count profile.
  • Does not accept schedule-dependent Actual/Actual ICMA.
  • Schedule-dependent or inferred conventions.

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "finance.year_fraction_30_360_us",
  "input": {
    "startDate": "2026-01-01",
    "endDate": "2026-07-01"
  }
}

Examples

Verified vector

Inputjson
{
  "startDate": "2026-01-01",
  "endDate": "2026-07-01"
}
Expected outputjson
{
  "yearFraction": "0.5",
  "syntheticDayCount": 180
}
Tip
Independent W18 vector.

Repeated vector

Inputjson
{
  "startDate": "2026-01-01",
  "endDate": "2026-07-01"
}
Expected outputjson
{
  "yearFraction": "0.5",
  "syntheticDayCount": 180
}
Tip
Deterministic repeat.
  • Explicit deterministic accrual fractions.
  • Independent verification of an accounting period fraction.

Avoid for

  • Schedule-dependent or inferred conventions.

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

day-countmathfinance