Description
Parse sunsetDate and subtract noticeDays in 0-100000 using UTC calendar arithmetic.
Policy indicators relate supplied targets, dates, categories, and measured quantities. A computed gap or formatted label can describe a record without establishing policy effectiveness or a causal explanation.
Parse sunsetDate and subtract noticeDays in 0-100000 using UTC calendar arithmetic.
When to use this tool
Use Policy Sunset Notice Date when you need one policy-monitoring component with the numerator, denominator, and time basis made explicit.
How to use the tool and how it works
- Enter sunsetDate, noticeDays. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read noticeDate. Use the output convention below.
Parse sunsetDate and subtract noticeDays in 0-100000 using UTC calendar arithmetic. Require the resulting Gregorian year at least zero and return noticeDate.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| sunsetDate | Sunset Date | Required. Text; maximum UTF-16 length 8192. |
| noticeDays | Notice Days | Required. Safe integer; minimum 0; maximum 100000. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| noticeDate | Notice Date | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"sunsetDate": "2026-12-31",
"noticeDays": 30
},
"output": {
"noticeDate": "2026-12-01"
}
} Limitations and assumptions
- The notice interval is supplied; business-day exceptions, service requirements, and actual legal notice obligations are not inferred.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Review the source data, full policy definition, and relevant evaluation method before interpreting the indicator.
References
Similar or alternative tools
- Regulation Clause Effective Date
Mark effectiveByDate when asOf is on or after the supplied effective date.
- Treaty Clause Reservation Link
Require nonempty treatyId, clauseId, and reservationId and serialize them as an ordered linkToken.