Taking into account these formulas, it is possible to arrive at the correct formula by means of clearings: