Fixed issues with declining balance calculator. Tests now pass