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