{"skills":[{"name":"Compare broadband costs over the contract","description":"Calculate what each broadband offer costs across the same period, including dated price rises, fees and unconditional credits.","content":"# Compare broadband costs over the contract\n\nCalculate what each broadband offer costs across the same period, including dated price rises, fees and unconditional credits.\n\n## When to use this skill\n\n- Someone has two or more broadband offers with different introductory prices, setup fees or contract lengths.\n- A deal has cheap first months, a stated mid-contract price rise or a bill credit, and the person wants the real total.\n- Someone is deciding whether to re-contract with their current provider or switch at the end of their minimum term.\n\n## When not to use it\n\n- Judging speed, reliability or availability at the address. Use the providers' address checkers for that.\n- Deciding whether the person can leave a current contract without a fee. The contract and the provider's notices decide that; in the UK, Ofcom gives a 30-day exit right only when a rise was not set out in the contract.\n- Mobile, TV or bundle add-ons that are priced per line or per channel. Price those separately.\n\n## What you need\n\n- Written offers with minimum term, dated prices, setup fees, expiry dates for offers and guaranteed bill credits.\n- A comparison horizon and any costs for leaving an existing deal. State the currency.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Over how many months should the offers be compared? Use the longest minimum term, or how long you expect to stay, and price every offer over the same months.\n- What does each contract say about price changes, with amounts and dates? UK contracts signed since 17 January 2025 must state rises in pounds and pence; older ones may still have inflation-linked rises.\n- Which credits are automatic bill credits, and which are vouchers, gift cards or cashback you have to claim?\n- Is there an exit fee on your current deal that you want included?\n\n## Method\n\n1. Fix the comparison period and currency, and ask where the person lives if consumer rules matter. Every offer is priced over the same months.\n2. Build a month-by-month price schedule from each contract. Apply a rise from the billing month the contract says it takes effect, and read whether the new figure replaces the monthly price or is added to it. Do not apply inflation or a percentage the contract does not state.\n3. Add one-off connection, activation and compulsory equipment or delivery charges once. Subtract only unconditional bill or cash credits that fall inside the period. List vouchers, gift cards, cashback that must be claimed and optional extras separately, outside the total.\n4. If the period runs past a known price, or a compulsory fee is not stated, mark that offer's total as unknown and name the missing figure. Do not fill the gap with a guess or another provider's price.\n5. Keep an exit fee on the person's current deal out of the totals unless they ask for it, and then apply it to every offer that involves leaving.\n6. Sum the months and one-off items for the total, then divide by the number of months for an effective monthly price, rounding to pennies only at the end. Name the cheaper offer only when every total is known.\n7. Remind the person what happens after the minimum term: UK providers must send an end-of-contract notice 10 to 40 days before it ends showing the price afterwards, so diary the end date and check that price.\n\n## Checks before you deliver\n\n- One free month is already counted if the monthly schedule lists it as \u00a30.\n- A price increase of \u00a33 changes every affected monthly bill. It is not a one-off \u00a33 setup fee.\n- Treating a gift card or claimable cashback as a bill reduction makes an offer look cheaper than the cash it will cost.\n- Comparing deals of different lengths on the monthly price alone hides the setup fee and any later rise.\n- Assuming an inflation-linked rise on a new UK contract. Since 17 January 2025 rises must be stated in pounds and pence, so use the contract's figure.\n\n## How to present the result\n\nStart with the answer: which offer costs less over the period and by how much, or which missing figure prevents a ranking. Then give a table with one row per offer showing monthly prices by period, one-off fees, credits, total and effective monthly price. List vouchers and optional extras underneath, outside the totals, and finish with the question to ask any provider whose price is incomplete.\n\n## Worked example\n\n**Request:** Compare both offers over 12 months.\n\n**Supplied material:**\n\n```text\nPine: months 1\u20133 \u00a315\/month, months 4\u201312 \u00a329\/month, setup \u00a320, automatic \u00a310 bill credit.\nReed: 12 months at \u00a326, free setup, optional \u00a330 shopping voucher.\n```\n\n**Answer:** Reed costs \u00a3312 over 12 months, \u00a34 less than Pine\u2019s \u00a3316 after setup and its automatic credit. That works out at \u00a326 a month for Reed and \u00a326.33 for Pine. Treat Reed\u2019s optional \u00a330 shopping voucher separately.\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 total_gbp keyed by offer name (number or null), effective_monthly_gbp keyed by offer name (number rounded to pennies or null) and cheaper_offer as the name, 'tie', or null if any price is incomplete.\n\n## Sources\n\n- [Ofcom: understanding in-contract telecoms price rises](https:\/\/www.ofcom.org.uk\/phones-and-broadband\/saving-money\/telecoms-price-rises-what-are-your-rights?language=en): Ofcom explains that since 17 January 2025 new phone and broadband contracts must set out price rises in pounds and pence and say when they take effect, and that customers told of a rise not in their contract can leave within 30 days without exit fees. The skill therefore prices each month from the contract's stated amounts and dates.\n- [Ofcom: companies must tell customers about their best deals](https:\/\/www.ofcom.org.uk\/phones-and-broadband\/service-quality\/companies-must-tell-customers-about-their-best-deals): Ofcom requires providers to warn customers 10 to 40 days before a contract ends, showing what they have been paying and what they will pay afterwards, and to remind out-of-contract customers of their best deals every year. This is why the skill tells the person to check the price after the minimum term.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/compare-broadband-contract-cost\n","scope":"contextual","trigger_keywords":["Compare broadband costs over the contract","compare-broadband-contract-cost","compare broadband contract cost","Which broadband deal is cheaper over the whole contract?","Which broadband deal is cheaper over the whole contract","compare broadband deals","compare broadband contracts","total broadband cost"],"is_private":true,"is_active":true,"scripts":[{"name":"compare-broadband-contract-cost-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":"compare-broadband-contract-cost-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: compare-broadband-contract-cost\ndescription: \"Work out what each broadband offer costs over the same period, month by month, including dated price rises, setup fees and guaranteed bill credits, and say which is cheaper. Use when someone compares broadband or fibre deals, introductory prices or a renewal quote against switching.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/compare-broadband-contract-cost\n---\n\n# Compare broadband costs over the contract\n\nCalculate what each broadband offer costs across the same period, including dated price rises, fees and unconditional credits.\n\n## When to use this skill\n\n- Someone has two or more broadband offers with different introductory prices, setup fees or contract lengths.\n- A deal has cheap first months, a stated mid-contract price rise or a bill credit, and the person wants the real total.\n- Someone is deciding whether to re-contract with their current provider or switch at the end of their minimum term.\n\n## When not to use it\n\n- Judging speed, reliability or availability at the address. Use the providers' address checkers for that.\n- Deciding whether the person can leave a current contract without a fee. The contract and the provider's notices decide that; in the UK, Ofcom gives a 30-day exit right only when a rise was not set out in the contract.\n- Mobile, TV or bundle add-ons that are priced per line or per channel. Price those separately.\n\n## What you need\n\n- Written offers with minimum term, dated prices, setup fees, expiry dates for offers and guaranteed bill credits.\n- A comparison horizon and any costs for leaving an existing deal. State the currency.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Over how many months should the offers be compared? Use the longest minimum term, or how long you expect to stay, and price every offer over the same months.\n- What does each contract say about price changes, with amounts and dates? UK contracts signed since 17 January 2025 must state rises in pounds and pence; older ones may still have inflation-linked rises.\n- Which credits are automatic bill credits, and which are vouchers, gift cards or cashback you have to claim?\n- Is there an exit fee on your current deal that you want included?\n\n## Method\n\n1. Fix the comparison period and currency, and ask where the person lives if consumer rules matter. Every offer is priced over the same months.\n2. Build a month-by-month price schedule from each contract. Apply a rise from the billing month the contract says it takes effect, and read whether the new figure replaces the monthly price or is added to it. Do not apply inflation or a percentage the contract does not state.\n3. Add one-off connection, activation and compulsory equipment or delivery charges once. Subtract only unconditional bill or cash credits that fall inside the period. List vouchers, gift cards, cashback that must be claimed and optional extras separately, outside the total.\n4. If the period runs past a known price, or a compulsory fee is not stated, mark that offer's total as unknown and name the missing figure. Do not fill the gap with a guess or another provider's price.\n5. Keep an exit fee on the person's current deal out of the totals unless they ask for it, and then apply it to every offer that involves leaving.\n6. Sum the months and one-off items for the total, then divide by the number of months for an effective monthly price, rounding to pennies only at the end. Name the cheaper offer only when every total is known.\n7. Remind the person what happens after the minimum term: UK providers must send an end-of-contract notice 10 to 40 days before it ends showing the price afterwards, so diary the end date and check that price.\n\n## Checks before you deliver\n\n- One free month is already counted if the monthly schedule lists it as \u00a30.\n- A price increase of \u00a33 changes every affected monthly bill. It is not a one-off \u00a33 setup fee.\n- Treating a gift card or claimable cashback as a bill reduction makes an offer look cheaper than the cash it will cost.\n- Comparing deals of different lengths on the monthly price alone hides the setup fee and any later rise.\n- Assuming an inflation-linked rise on a new UK contract. Since 17 January 2025 rises must be stated in pounds and pence, so use the contract's figure.\n\n## How to present the result\n\nStart with the answer: which offer costs less over the period and by how much, or which missing figure prevents a ranking. Then give a table with one row per offer showing monthly prices by period, one-off fees, credits, total and effective monthly price. List vouchers and optional extras underneath, outside the totals, and finish with the question to ask any provider whose price is incomplete.\n\n## Worked example\n\n**Request:** Compare both offers over 12 months.\n\n**Supplied material:**\n\n```text\nPine: months 1\u20133 \u00a315\/month, months 4\u201312 \u00a329\/month, setup \u00a320, automatic \u00a310 bill credit.\nReed: 12 months at \u00a326, free setup, optional \u00a330 shopping voucher.\n```\n\n**Answer:** Reed costs \u00a3312 over 12 months, \u00a34 less than Pine\u2019s \u00a3316 after setup and its automatic credit. That works out at \u00a326 a month for Reed and \u00a326.33 for Pine. Treat Reed\u2019s optional \u00a330 shopping voucher separately.\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 total_gbp keyed by offer name (number or null), effective_monthly_gbp keyed by offer name (number rounded to pennies or null) and cheaper_offer as the name, 'tie', or null if any price is incomplete.\n\n## Sources\n\n- [Ofcom: understanding in-contract telecoms price rises](https:\/\/www.ofcom.org.uk\/phones-and-broadband\/saving-money\/telecoms-price-rises-what-are-your-rights?language=en): Ofcom explains that since 17 January 2025 new phone and broadband contracts must set out price rises in pounds and pence and say when they take effect, and that customers told of a rise not in their contract can leave within 30 days without exit fees. The skill therefore prices each month from the contract's stated amounts and dates.\n- [Ofcom: companies must tell customers about their best deals](https:\/\/www.ofcom.org.uk\/phones-and-broadband\/service-quality\/companies-must-tell-customers-about-their-best-deals): Ofcom requires providers to warn customers 10 to 40 days before a contract ends, showing what they have been paying and what they will pay afterwards, and to remind out-of-contract customers of their best deals every year. This is why the skill tells the person to check the price after the minimum term.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/compare-broadband-contract-cost\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\/compare-broadband-contract-cost\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# A cheap introductory period\n\nCompare both offers over 12 months.\n\n## Supplied material\n\nPine: months 1\u20133 \u00a315\/month, months 4\u201312 \u00a329\/month, setup \u00a320, automatic \u00a310 bill credit.\nReed: 12 months at \u00a326, free setup, optional \u00a330 shopping voucher.\n\n## Worked answer\n\nReed costs \u00a3312 over 12 months, \u00a34 less than Pine\u2019s \u00a3316 after setup and its automatic credit. That works out at \u00a326 a month for Reed and \u00a326.33 for Pine. Treat Reed\u2019s optional \u00a330 shopping voucher separately.\n\n## Reasoning\n\nThe bill credit affects cash paid. The shopping voucher has no place in the line for billed cost.\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":"Compare both offers over 12 months.\nReturn only the JSON specified in SKILL.md for this test.\n\nPine: months 1\u20133 \u00a315\/month, months 4\u201312 \u00a329\/month, setup \u00a320, automatic \u00a310 bill credit.\nReed: 12 months at \u00a326, free setup, optional \u00a330 shopping voucher.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"total_gbp\": {\n        \"Pine\": 316,\n        \"Reed\": 312\n    },\n    \"effective_monthly_gbp\": {\n        \"Pine\": 26.33,\n        \"Reed\": 26\n    },\n    \"cheaper_offer\": \"Reed\"\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The bill credit affects cash paid. The shopping voucher has no place in the line for billed cost.\n"},{"path":"tests\/case-2\/request.txt","content":"Compare a full year at these terms.\nReturn only the JSON specified in SKILL.md for this test.\n\nMoor: first nine months \u00a320 each, then price to be confirmed. Free setup.\nVale: first month free, remaining eleven months \u00a325, setup \u00a35.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"total_gbp\": {\n        \"Moor\": null,\n        \"Vale\": 280\n    },\n    \"effective_monthly_gbp\": {\n        \"Moor\": null,\n        \"Vale\": 23.33\n    },\n    \"cheaper_offer\": null\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The nine known payments do not establish a full-year price.\n"}],"is_active":true,"is_approved":false}]}]}