VAT is taken from the whole payment amount, and corporation tax is taken from the remaining amount. So given an invoice of £100 + VAT, £20 is VAT, and £25 is corporation tax.
Updated September 23rd 2023
Disclaimer: This does not constitute financial advice.
Always consult a qualified accountant and tax advisor.