Source: http://maths-sciences.fr/documents/cap/mathematiques/calculs-commerciaux/exercices-2-calculs-commerciaux-cap.pdf