Source: https://courses.ex-machina.ma/downloads/MIAGE2/S4/Maths_Financieres/Math_Fin.pdf