{"skills":[{"name":"Find a contract renewal notice deadline","description":"Extract the current term, calculate when notice must arrive and tell the owner how to deliver it.","content":"# Find a contract renewal notice deadline\n\nExtract the current term, calculate when notice must arrive and tell the owner how to deliver it.\n\n## When to use this skill\n\n- A supplier contract, subscription or service agreement renews automatically unless notice is given.\n- Someone asks for the last day to give notice, or whether a notice sent by email or at the weekend will count.\n- A contract register needs renewal and notice dates diarised.\n\n## When not to use it\n\n- Deciding whether a renewal or notice clause is enforceable, or whether consumer law overrides it for a consumer subscription. Check the consumer rules for the person's country separately.\n- Negotiating the renewal or drafting the substance of the notice. The skill finds the date, channel and evidence needed.\n\n## What you need\n\n- Signed agreement and effective variations, previous renewal history and term end.\n- Notice clause, receipt rule, normal delivery channel and relevant holiday calendar if needed.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Can you share the signed contract and any variations, including the renewal clause and the separate notices clause? The delivery method and receipt rule are usually in the notices clause.\n- When did the current term start or last renew, and what record shows it? Signature, service start and acceptance can be different dates.\n- Where are the parties, and which public holiday calendar does the contract use? Bank holidays differ between England and Wales, Scotland and Northern Ireland, and between countries.\n\n## Method\n\n1. Locate the operative renewal clause and the separate notices clause, including amendments. Record the clause numbers.\n2. Establish the anchor date: the current term end or renewal date from signed evidence and any recorded exercise of an option. If the term runs from an event such as service acceptance, find the record of that event; do not substitute the signature date.\n3. Count with the contract's own unit. Subtract calendar days from the stated date for a received-by rule. For whole calendar months, use the corresponding date and check the contract's end-of-month treatment. Business-day rules need the stated calendar.\n4. Read whether the deadline governs dispatch, receipt or deemed receipt. Work backwards through any delivery cut-off time, time zone, weekend and holiday rules to the last effective delivery opportunity, and report the nominal date separately if it differs. If the holiday calendar is essential but missing, give the last possible time subject to that calendar and leave the confirmed deadline unresolved.\n5. Do not move a deadline that falls on a weekend or holiday unless the contract says so. Without a business-day or deemed-receipt rule the nominal date stands; suggest sending earlier as a practical margin, but report the contractual date.\n6. Record the evidence locator, required channel and notice trigger. When the anchor or counting convention cannot be established, keep the supported facts and return an unresolved date. This is a diary aid, not a decision about enforceability.\n7. Suggest a reminder well before the deadline, leaving time to decide, get approval and send, and say what proof of delivery to keep.\n\n## Checks before you deliver\n\n- Auto-renewal length is different from the notice period.\n- A draft email, an invoice contact and a notice delivered to the specified address are different pieces of evidence.\n- Counting from the signature date when the term runs from service start or acceptance.\n- Assuming a notice sent at the weekend counts that day. A deemed-receipt rule can move it to the next business day, after the deadline.\n- Using a holiday calendar the contract does not name. UK bank holidays differ between England and Wales, Scotland and Northern Ireland.\n\n## How to present the result\n\nLead with the date, and time if one applies, to diary and the channel to use, or with the missing fact that blocks a confirmed date. Then show the working: anchor date and its evidence, notice period, clause references, receipt rule and any weekend or holiday adjustment. Finish with a suggested reminder date and the proof of delivery to keep.\n\n## Worked example\n\n**Request:** What is the last permitted receipt date?\n\n**Supplied material:**\n\n```text\nOrder term ends 2027-03-31. Clause 6.2: rolls for another year unless notice is received at least 60 calendar days before term end. Clause 14: notice through customer portal. No adjustments or amendments.\n```\n\n**Answer:** Diary 30 January 2027 as the last date notice must reach the customer portal. The term ends 31 March and clause 6.2 requires 60 calendar days. Use the portal specified in clause 14 and retain its receipt.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn deadline (ISO date or null), deadline_basis (receipt, dispatch or unknown), channel (email, post, portal, other or unknown), clause (operative identifier only, such as 6.2 or R4, the local clause marker may also be retained) and status (calculated or needs_information). For a deemed-receipt rule also give nominal_deadline and last_candidate, as YYYY-MM-DD HH:MM followed by the supplied time zone for a timed candidate. Use deadline for the confirmed last effective delivery date and needs_information when the calendar is essential but missing.\n\n## Sources\n\n- [GOV.UK: UK bank holidays](https:\/\/www.gov.uk\/bank-holidays): GOV.UK lists separate bank holidays for England and Wales, Scotland and Northern Ireland, including substitute days. The skill asks which calendar the contract uses instead of assuming one.\n- [Government Commercial Function: Contract management foundation guide](https:\/\/www.gov.uk\/government\/publications\/civil-service-helping-you-with-managing-suppliers-and-contracts\/contract-management-training-accreditation-foundation-level-takeaway-guide-html): The guide tells contract managers to start exit planning on larger contracts about 12 to 18 months before the contract ends and to review the plan at least annually. This is why the skill sets reminders well ahead of the notice date.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/find-contract-renewal-deadline\n","scope":"contextual","trigger_keywords":["Find a contract renewal notice deadline","find-contract-renewal-deadline","find contract renewal deadline","What is the last day to give notice before this contract renews automatically?","What is the last day to give notice before this contract renews automatically","contract renewal deadline","last day to give notice","auto-renewal notice deadline"],"is_private":true,"is_active":true,"scripts":[{"name":"find-contract-renewal-deadline-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"find-contract-renewal-deadline-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: find-contract-renewal-deadline\ndescription: \"Work out the last date to give notice under a contract's renewal or auto-renewal clause, using the notices clause, delivery method, deemed-receipt rules and the right holiday calendar. Use when someone asks when they must cancel, terminate or give notice before a contract rolls over.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/find-contract-renewal-deadline\n---\n\n# Find a contract renewal notice deadline\n\nExtract the current term, calculate when notice must arrive and tell the owner how to deliver it.\n\n## When to use this skill\n\n- A supplier contract, subscription or service agreement renews automatically unless notice is given.\n- Someone asks for the last day to give notice, or whether a notice sent by email or at the weekend will count.\n- A contract register needs renewal and notice dates diarised.\n\n## When not to use it\n\n- Deciding whether a renewal or notice clause is enforceable, or whether consumer law overrides it for a consumer subscription. Check the consumer rules for the person's country separately.\n- Negotiating the renewal or drafting the substance of the notice. The skill finds the date, channel and evidence needed.\n\n## What you need\n\n- Signed agreement and effective variations, previous renewal history and term end.\n- Notice clause, receipt rule, normal delivery channel and relevant holiday calendar if needed.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Can you share the signed contract and any variations, including the renewal clause and the separate notices clause? The delivery method and receipt rule are usually in the notices clause.\n- When did the current term start or last renew, and what record shows it? Signature, service start and acceptance can be different dates.\n- Where are the parties, and which public holiday calendar does the contract use? Bank holidays differ between England and Wales, Scotland and Northern Ireland, and between countries.\n\n## Method\n\n1. Locate the operative renewal clause and the separate notices clause, including amendments. Record the clause numbers.\n2. Establish the anchor date: the current term end or renewal date from signed evidence and any recorded exercise of an option. If the term runs from an event such as service acceptance, find the record of that event; do not substitute the signature date.\n3. Count with the contract's own unit. Subtract calendar days from the stated date for a received-by rule. For whole calendar months, use the corresponding date and check the contract's end-of-month treatment. Business-day rules need the stated calendar.\n4. Read whether the deadline governs dispatch, receipt or deemed receipt. Work backwards through any delivery cut-off time, time zone, weekend and holiday rules to the last effective delivery opportunity, and report the nominal date separately if it differs. If the holiday calendar is essential but missing, give the last possible time subject to that calendar and leave the confirmed deadline unresolved.\n5. Do not move a deadline that falls on a weekend or holiday unless the contract says so. Without a business-day or deemed-receipt rule the nominal date stands; suggest sending earlier as a practical margin, but report the contractual date.\n6. Record the evidence locator, required channel and notice trigger. When the anchor or counting convention cannot be established, keep the supported facts and return an unresolved date. This is a diary aid, not a decision about enforceability.\n7. Suggest a reminder well before the deadline, leaving time to decide, get approval and send, and say what proof of delivery to keep.\n\n## Checks before you deliver\n\n- Auto-renewal length is different from the notice period.\n- A draft email, an invoice contact and a notice delivered to the specified address are different pieces of evidence.\n- Counting from the signature date when the term runs from service start or acceptance.\n- Assuming a notice sent at the weekend counts that day. A deemed-receipt rule can move it to the next business day, after the deadline.\n- Using a holiday calendar the contract does not name. UK bank holidays differ between England and Wales, Scotland and Northern Ireland.\n\n## How to present the result\n\nLead with the date, and time if one applies, to diary and the channel to use, or with the missing fact that blocks a confirmed date. Then show the working: anchor date and its evidence, notice period, clause references, receipt rule and any weekend or holiday adjustment. Finish with a suggested reminder date and the proof of delivery to keep.\n\n## Worked example\n\n**Request:** What is the last permitted receipt date?\n\n**Supplied material:**\n\n```text\nOrder term ends 2027-03-31. Clause 6.2: rolls for another year unless notice is received at least 60 calendar days before term end. Clause 14: notice through customer portal. No adjustments or amendments.\n```\n\n**Answer:** Diary 30 January 2027 as the last date notice must reach the customer portal. The term ends 31 March and clause 6.2 requires 60 calendar days. Use the portal specified in clause 14 and retain its receipt.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn deadline (ISO date or null), deadline_basis (receipt, dispatch or unknown), channel (email, post, portal, other or unknown), clause (operative identifier only, such as 6.2 or R4, the local clause marker may also be retained) and status (calculated or needs_information). For a deemed-receipt rule also give nominal_deadline and last_candidate, as YYYY-MM-DD HH:MM followed by the supplied time zone for a timed candidate. Use deadline for the confirmed last effective delivery date and needs_information when the calendar is essential but missing.\n\n## Sources\n\n- [GOV.UK: UK bank holidays](https:\/\/www.gov.uk\/bank-holidays): GOV.UK lists separate bank holidays for England and Wales, Scotland and Northern Ireland, including substitute days. The skill asks which calendar the contract uses instead of assuming one.\n- [Government Commercial Function: Contract management foundation guide](https:\/\/www.gov.uk\/government\/publications\/civil-service-helping-you-with-managing-suppliers-and-contracts\/contract-management-training-accreditation-foundation-level-takeaway-guide-html): The guide tells contract managers to start exit planning on larger contracts about 12 to 18 months before the contract ends and to review the plan at least annually. This is why the skill sets reminders well ahead of the notice date.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/find-contract-renewal-deadline\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/find-contract-renewal-deadline\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Notice must arrive\n\nWhat is the last permitted receipt date?\n\n## Supplied material\n\nOrder term ends 2027-03-31. Clause 6.2: rolls for another year unless notice is received at least 60 calendar days before term end. Clause 14: notice through customer portal. No adjustments or amendments.\n\n## Worked answer\n\nDiary 30 January 2027 as the last date notice must reach the customer portal. The term ends 31 March and clause 6.2 requires 60 calendar days. Use the portal specified in clause 14 and retain its receipt.\n\n## Reasoning\n\nThe contract specifies receipt. Subtracting sixty days does not create an earlier assumed postal deadline.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"What is the last permitted receipt date?\nReturn only the JSON specified in SKILL.md for this test.\n\nOrder term ends 2027-03-31. Clause 6.2: rolls for another year unless notice is received at least 60 calendar days before term end. Clause 14: notice through customer portal. No adjustments or amendments.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"deadline\": \"2027-01-30\",\n    \"deadline_basis\": \"receipt\",\n    \"channel\": \"portal\",\n    \"clause\": \"6.2\",\n    \"status\": \"calculated\"\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The contract specifies receipt. Subtracting sixty days does not create an earlier assumed postal deadline.\n"},{"path":"tests\/case-1\/accepted.json","content":"{\n    \"clause\": [\n        \"Clause 6.2\",\n        \"\u00a76.2\"\n    ]\n}\n"},{"path":"tests\/case-2\/request.txt","content":"Give me the diary deadline for this agreement.\nReturn only the JSON specified in SKILL.md for this test.\n\nClause R4: renews on each anniversary of service acceptance unless notice is dispatched by post at least 45 calendar days before that anniversary. Signed 2025-07-01. Acceptance record missing.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"deadline\": null,\n    \"deadline_basis\": \"dispatch\",\n    \"channel\": \"post\",\n    \"clause\": \"R4\",\n    \"status\": \"needs_information\"\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"Signing and service acceptance are distinct events.\n"},{"path":"tests\/case-2\/accepted.json","content":"{\n    \"clause\": [\n        \"Clause R4\",\n        \"\u00a7R4\"\n    ]\n}\n"},{"path":"tests\/case-3\/request.txt","content":"Can I send the email at the weekend?\nReturn only the JSON specified in SKILL.md for this test.\n\nSigned \u00a75 renews 2027-06-01 unless notice received at least 30 calendar days before. \u00a712 specifies email. Receipts after 17:00 London time on a business day, or anytime on a weekend or local public holiday, are deemed received the next business day. The applicable local holiday calendar has not been supplied.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"deadline\": null,\n    \"deadline_basis\": \"receipt\",\n    \"channel\": \"email\",\n    \"clause\": \"5\",\n    \"status\": \"needs_information\",\n    \"nominal_deadline\": \"2027-05-02\",\n    \"last_candidate\": \"2027-04-30 17:00 Europe\/London\"\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"Sunday 2 May is nominally 30 days before renewal. A weekend email is too late. Friday 30 April is the latest candidate if it is a business day; otherwise an earlier business day is required.\n"},{"path":"tests\/case-3\/accepted.json","content":"{\n    \"clause\": [\n        \"Clause 5\",\n        \"\u00a75\"\n    ],\n    \"last_candidate\": [\n        \"2027-04-30 17:00 London\",\n        \"2027-04-30T17:00:00+01:00\",\n        \"2027-04-30T17:00+01:00\",\n        \"2027-04-30 17:00 BST\"\n    ]\n}\n"}],"is_active":true,"is_approved":false}]}]}