Source: https://unt.univ-cotedazur.fr/aunege/MAE_1A/MAE_1A_comptabilite/cours/lecon8/pdf/cours8.pdf