Source: https://aunege.org/ressources/module_gestion_stocks/lecon4/courspdf/lecon4.pdf