Source: https://www.aouragh.ma/Mathématiques financières/Examens/2016_2017/Examen_MF_S2_2016_2017.pdf