Source: http://lplagrangemaths.free.fr/maths/cours/Cours_CH_VIII_Escompte_bancaire_Agio_NII.pdf