"When the government sets a rate of 21% corporation tax, it's pretty clear that the government intends that companies pay 21% corporation tax on their revenues."
Corporate taxes are not based on revenue. They are usually based on the difference between revenue and cost. It would be hell to live in a world where we had to obey the 'intention' of the law rather than the law itself.