How is «discount_tax_compensation_amount» calculated by Magento\Tax\Model\Calculation\AbstractAggregateCalculator::calculateWithTaxInPrice()?

The base article: How is discount_tax_compensation_amount calculated?

Step 1

Step 2

Details:

Step 3

Step 4