Source: https://www.procomptable.com/etudiants/cours_exercice_initiation/CH5_PEF.pdf