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