In the example you gave of buying goods for €40.73 the VAT is INCLUDED in the sale, so it's not 21.5% of €40.73 but 21.5% of and amount which when you add the VAT onto it brings the total up to €40.73. IN that case it's 21.5% of €33.53 which is €7.20 and when you add the two together you get €40.73.
On the mark-up issue, if you buy for €4.00 (incl VAT) and sell for €8.00 (incl VAT) then the figures come out at
Sale €8.00 VAT €1.41 net sale €6.59
Pch €4.00 VAT €0.71 net pch €3.29
Net VAT to Revenue €0.70
Net profit to you €3.30
You can get VAT included in an amount of say €4.00 including VAT by dividing by 1.the VAT rate and then multiplying the result by the VAT rate :-
€4.00 / 1.215 = €3.29
€3.29 * .215 = €0.71
To get VAT at 21.5% on top of an amount say 4.00 + VAT it's 4.00 *.215