Source: http://courses.ex-machina.ma/downloads/CPI2/S4/Comptabilite_Analytique/Corrig%C3%A9_Contr%C3%B4le_1.pdf