Source: https://fac.umc.edu.dz/ista/pdf/cours/L1-GPL_Gestion%20des%20co%C3%BBts-TD%20N%C2%B0%2004%20%2BCorrig%C3%A9.pdf