Source: http://www.cterrier.com/cours/gestionfi/2ainteretcompose.pdf