Source: https://ww3.ac-poitiers.fr/math_sp/pedago/BACTER/ANNUITES.PDF