Source: http://maths-sciences.fr/documents/cap/mathematiques/interets-simples/exercices-interet-simple-cap-groupement-c.pdf