MIFOSX-601: fix issue with negative interest been calculated due to incorrect calculation of end of day balance.