Boiler vs heat-pump running cost: the COP a heat pump needs to match a gas boiler, then the saving (or extra cost) at a chosen COP.
Unit rates must be the same basis (usually £/kWh). Boiler efficiency is a fraction (0.9 = 90%). A heat pump cheaper than gas needs a seasonal COP above the breakeven figure.