Terrorism in the UK has cost nearly £40 billion between 2004 and 2016, according to a European Parliament report. However, the total amount the UK lost since the invasion of Iraq has been well over that amount when accounting for the additional £3bn cost of 2017.
Source