Figure A: Tax calculation process
The following figure shows how the tax is calculated: