from textwrap import dedent html = dedent(""" UK Crypto Tax Guide & Calculator | Crypto For Everyone

Crypto For Everyone

UK Crypto Tax Guide & Calculator

UK Crypto Tax Calculator

This calculator provides a simple estimate of UK Capital Gains Tax based on your total gains after allowable costs. It is for guidance only and should not be treated as tax advice.

Open Global Calculator

Simple UK Capital Gains Calculator

When is Crypto Taxable?

Usually Not Taxable

Keep Records Of

RecordReason
DateHMRC reporting
CoinAsset identification
QuantityGain calculation
FeesAllowable costs
Wallet / ExchangeSupporting evidence

HMRC Reminder

HMRC may require accurate records of all cryptocurrency transactions. This page is an educational guide only and does not replace professional advice.

""") path="/mnt/data/ukcalculator.html" with open(path,"w",encoding="utf-8") as f: f.write(html) print(path)