Source: http://www.lameta.univ-montp1.fr/IMG/pdf/calcul_eco_prive_TRI_exercice-2.pdf