{"record":{"id":"d50ff519ab9b2c9f","repo":"TheAlgorithms/Python","slug":"the-date-was-evaluated-incorrectly-contact-develo","errorCode":null,"errorMessage":"The date was evaluated incorrectly. Contact developer.","messagePattern":"The date was evaluated incorrectly\\. Contact developer\\.","errorType":"exception","errorClass":"AssertionError","httpStatus":null,"severity":"error","filePath":"maths/zellers_congruence.py","lineNumber":143,"sourceCode":"    # Start math\n    if m <= 2:\n        y = y - 1\n        m = m + 12\n    # maths var\n    c: int = int(str(y)[:2])\n    k: int = int(str(y)[2:])\n    t: int = int(2.6 * m - 5.39)\n    u: int = int(c / 4)\n    v: int = int(k / 4)\n    x: int = int(d + k)\n    z: int = int(t + u + v + x)\n    w: int = int(z - (2 * c))\n    f: int = round(w % 7)\n    # End math\n\n    # Validate math\n    if f != convert_datetime_days[dt_ck.weekday()]:\n        raise AssertionError(\"The date was evaluated incorrectly. Contact developer.\")\n\n    # Response\n    response: str = f\"Your date {date_input}, is a {days[str(f)]}!\"\n    return response\n\n\nif __name__ == \"__main__\":\n    import doctest\n\n    doctest.testmod()\n    parser = argparse.ArgumentParser(\n        description=(\n            \"Find out what day of the week nearly any date is or was. Enter \"\n            \"date as a string in the mm-dd-yyyy or mm/dd/yyyy format\"\n        )\n    )\n    parser.add_argument(\n        \"date_input\", type=str, help=\"Date as a string (mm-dd-yyyy or mm/dd/yyyy)\"","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/TheAlgorithms/Python/blob/f5988cc09713315817df6a7e327e258013a94440/maths/zellers_congruence.py#L125-L161","documentation":"Error \"The date was evaluated incorrectly. Contact developer.\" thrown in TheAlgorithms/Python.","triggerScenarios":"Thrown at maths/zellers_congruence.py:143 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the input date string format (dd-mm-yyyy or dd/mm/yyyy) and valid month/day values."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f5988cc09713315817df6a7e327e258013a94440","analyzedAt":"2026-08-14T17:30:07.041Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}