{"abstract":"An extension requested on the Monday after a weekend statutory date is rejected.","category":"Legal deadline computation","checks":7,"contract":"Stipulated: a return for a fiscal year ending fy_end (month end) is due on the 15th day of the 3rd month after year end for a partnership and the 4th month for other entities. A statutory date on a weekend or listed holiday moves to the next open day. An extension request filed on or before that (moved) due date extends the due date to 6 months after the statutory (unmoved) date, again moved forward if closed.","evaluation_group":"w2-legal-deadline-computation-return-due-date-extension","failed_approach":"The partial repair `dt.date.fromisoformat(requested) < due` rejects a request filed on the due date itself.","family":"w2-legal-deadline-computation-return-due-date-extension-request-timely","id":"FA-77771","implementations":{"attempt":{"sha256":"b8db26afa81745b4abdaf53632f300851eab47351b4049ed053eaea994770fcd","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport datetime as dt\nimport calendar\nN = 1\nobservations = []\ndef solve(fy_end, entity, requested, holidays):\n    e = dt.date.fromisoformat(fy_end)\n    hol = {dt.date.fromisoformat(x) for x in holidays}\n    def roll(d):\n        while d.weekday() >= 5 or d in hol:\n            d += dt.timedelta(days=1)\n        return d\n    def plus_months(d, k):\n        mi = d.month - 1 + k\n        return dt.date(d.year + mi // 12, mi % 12 + 1, d.day)\n    statutory = plus_months(dt.date(e.year, e.month, 15), 3 if entity == 'partnership' else 4)\n    due = roll(statutory)\n    if requested is not None and dt.date.fromisoformat(requested) < due:\n        due = roll(plus_months(statutory, 6))\n    return due.isoformat()\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15')],\n [('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16')],\n [('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15')],\n [('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15')],\n [('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15')]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"d23b41b0b6f14659e182e883e99f143d69fe3a082ae1ca784f81a7012b86dc08","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport datetime as dt\nimport calendar\nN = 1\nobservations = []\ndef solve(fy_end, entity, requested, holidays):\n    e = dt.date.fromisoformat(fy_end)\n    hol = {dt.date.fromisoformat(x) for x in holidays}\n    def roll(d):\n        while d.weekday() >= 5 or d in hol:\n            d += dt.timedelta(days=1)\n        return d\n    def plus_months(d, k):\n        mi = d.month - 1 + k\n        return dt.date(d.year + mi // 12, mi % 12 + 1, d.day)\n    statutory = plus_months(dt.date(e.year, e.month, 15), 3 if entity == 'partnership' else 4)\n    due = roll(statutory)\n    if requested is not None and dt.date.fromisoformat(requested) <= statutory:\n        due = roll(plus_months(statutory, 6))\n    return due.isoformat()\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15')],\n [('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16')],\n [('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15')],\n [('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15')],\n [('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15')]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"e03db22abcb5d26a86feaca607f30a9f5b994e3a05282f018b95ea0b7449fb8b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport datetime as dt\nimport calendar\nN = 1\nobservations = []\ndef solve(fy_end, entity, requested, holidays):\n    e = dt.date.fromisoformat(fy_end)\n    hol = {dt.date.fromisoformat(x) for x in holidays}\n    def roll(d):\n        while d.weekday() >= 5 or d in hol:\n            d += dt.timedelta(days=1)\n        return d\n    def plus_months(d, k):\n        mi = d.month - 1 + k\n        return dt.date(d.year + mi // 12, mi % 12 + 1, d.day)\n    statutory = plus_months(dt.date(e.year, e.month, 15), 3 if entity == 'partnership' else 4)\n    due = roll(statutory)\n    if requested is not None and dt.date.fromisoformat(requested) <= due:\n        due = roll(plus_months(statutory, 6))\n    return due.isoformat()\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15')],\n [('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16')],\n [('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15'),\n  ('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15')],\n [('statutory on holiday',\n   ['2023-12-31',\n    'individual',\n    '2024-04-10',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25',\n     '2024-04-15']],\n   '2024-10-15'),\n  ('march fiscal year corporation',\n   ['2024-03-31',\n    'corporation',\n    '2024-07-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2025-01-15'),\n  ('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15')],\n [('september fiscal partnership',\n   ['2023-09-30',\n    'partnership',\n    '2023-12-15',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25',\n     '2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-06-17'),\n  ('regression: statutory saturday, extension',\n   ['2022-12-31',\n    'corporation',\n    '2023-04-17',\n    ['2023-01-02',\n     '2023-01-16',\n     '2023-02-20',\n     '2023-05-29',\n     '2023-06-19',\n     '2023-07-04',\n     '2023-09-04',\n     '2023-10-09',\n     '2023-11-10',\n     '2023-11-23',\n     '2023-12-25']],\n   '2023-10-16'),\n  ('partnership calendar year',\n   ['2023-12-31',\n    'partnership',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-03-15'),\n  ('partnership extension',\n   ['2023-12-31',\n    'partnership',\n    '2024-03-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-09-16'),\n  ('corporation june year',\n   ['2024-06-30',\n    'corporation',\n    None,\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('request on due date',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-15',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-10-15'),\n  ('late request',\n   ['2023-12-31',\n    'corporation',\n    '2024-04-16',\n    ['2024-01-01',\n     '2024-01-15',\n     '2024-02-19',\n     '2024-05-27',\n     '2024-06-19',\n     '2024-07-04',\n     '2024-09-02',\n     '2024-10-14',\n     '2024-11-11',\n     '2024-11-28',\n     '2024-12-25']],\n   '2024-04-15')]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Stipulated toy deadline rules evaluated offline on explicit fixtures. The contract is inspired by common court-rule structures but is not legal advice and makes no claim to reproduce any jurisdiction's rules. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-legal-deadline-computation-return-due-date-extension-request-timely","generated_at":"2026-09-29T14:49:28.700873+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Docketing systems compute filing and response deadlines from trigger events; a wrong date can forfeit a right.","repair":"At the request timely decision use `dt.date.fromisoformat(requested) <= due`, leaving the other decision sites of the model unchanged.","root_cause":"Request timeliness is tested against the unmoved statutory date.","sha256":"6358b9348be2eaa0a7e833ce1f45abee65a30cce7c65ec1125821d694592ecca","title":"Return due date with automatic extension from the statutory date: request timely · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.651,"exit_code":1,"observations":[{"actual":"2023-04-17","check":"regression: statutory saturday, extension","expected":"2023-10-16","passed":false},{"actual":"2024-03-15","check":"partnership calendar year","expected":"2024-03-15","passed":true},{"actual":"2024-03-15","check":"partnership extension","expected":"2024-09-16","passed":false},{"actual":"2024-10-15","check":"corporation june year","expected":"2024-10-15","passed":true},{"actual":"2024-04-15","check":"request on due date","expected":"2024-10-15","passed":false},{"actual":"2024-04-15","check":"late request","expected":"2024-04-15","passed":true},{"actual":"2024-10-15","check":"statutory on holiday","expected":"2024-10-15","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: statutory saturday, extension\", \"actual\": \"2023-04-17\", \"expected\": \"2023-10-16\", \"passed\": false}, {\"check\": \"partnership calendar year\", \"actual\": \"2024-03-15\", \"expected\": \"2024-03-15\", \"passed\": true}, {\"check\": \"partnership extension\", \"actual\": \"2024-03-15\", \"expected\": \"2024-09-16\", \"passed\": false}, {\"check\": \"corporation june year\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}, {\"check\": \"request on due date\", \"actual\": \"2024-04-15\", \"expected\": \"2024-10-15\", \"passed\": false}, {\"check\": \"late request\", \"actual\": \"2024-04-15\", \"expected\": \"2024-04-15\", \"passed\": true}, {\"check\": \"statutory on holiday\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":45.081,"exit_code":1,"observations":[{"actual":"2023-04-17","check":"regression: statutory saturday, extension","expected":"2023-10-16","passed":false},{"actual":"2024-03-15","check":"partnership calendar year","expected":"2024-03-15","passed":true},{"actual":"2024-09-16","check":"partnership extension","expected":"2024-09-16","passed":true},{"actual":"2024-10-15","check":"corporation june year","expected":"2024-10-15","passed":true},{"actual":"2024-10-15","check":"request on due date","expected":"2024-10-15","passed":true},{"actual":"2024-04-15","check":"late request","expected":"2024-04-15","passed":true},{"actual":"2024-10-15","check":"statutory on holiday","expected":"2024-10-15","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: statutory saturday, extension\", \"actual\": \"2023-04-17\", \"expected\": \"2023-10-16\", \"passed\": false}, {\"check\": \"partnership calendar year\", \"actual\": \"2024-03-15\", \"expected\": \"2024-03-15\", \"passed\": true}, {\"check\": \"partnership extension\", \"actual\": \"2024-09-16\", \"expected\": \"2024-09-16\", \"passed\": true}, {\"check\": \"corporation june year\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}, {\"check\": \"request on due date\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}, {\"check\": \"late request\", \"actual\": \"2024-04-15\", \"expected\": \"2024-04-15\", \"passed\": true}, {\"check\": \"statutory on holiday\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":46.78,"exit_code":0,"observations":[{"actual":"2023-10-16","check":"regression: statutory saturday, extension","expected":"2023-10-16","passed":true},{"actual":"2024-03-15","check":"partnership calendar year","expected":"2024-03-15","passed":true},{"actual":"2024-09-16","check":"partnership extension","expected":"2024-09-16","passed":true},{"actual":"2024-10-15","check":"corporation june year","expected":"2024-10-15","passed":true},{"actual":"2024-10-15","check":"request on due date","expected":"2024-10-15","passed":true},{"actual":"2024-04-15","check":"late request","expected":"2024-04-15","passed":true},{"actual":"2024-10-15","check":"statutory on holiday","expected":"2024-10-15","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: statutory saturday, extension\", \"actual\": \"2023-10-16\", \"expected\": \"2023-10-16\", \"passed\": true}, {\"check\": \"partnership calendar year\", \"actual\": \"2024-03-15\", \"expected\": \"2024-03-15\", \"passed\": true}, {\"check\": \"partnership extension\", \"actual\": \"2024-09-16\", \"expected\": \"2024-09-16\", \"passed\": true}, {\"check\": \"corporation june year\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}, {\"check\": \"request on due date\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}, {\"check\": \"late request\", \"actual\": \"2024-04-15\", \"expected\": \"2024-04-15\", \"passed\": true}, {\"check\": \"statutory on holiday\", \"actual\": \"2024-10-15\", \"expected\": \"2024-10-15\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}