Source: https://www.fdc.ma/FDC/coursdistant/supportsprof/Hamliri/Chap 4 Mathématiques financières.pdf