Calculation of the cylinder exhaust timing