The formula of function RECEIVED for calculating received value on maturity is incorrect on the webpage of function RECEIVED.
RECEIVED = purchasevalue / ( 1 - days_difference/days_in_year). This is an incorrect formula. There is no formula on the webpage of 'Derivation Of Financial Formulas' either for this function.