27 Repayments are considered to apply first to the oldest loan or debt outstanding ("first-in, first -out basis") unless the facts clearly indicate otherwise.
28....It is a question of fact whether or not a repayment of a loan is part of a series of loans or other transactions and repayments. In most cases, when there are only a few loans or other transactions and a few repayments made during a taxation year of a lender, there is no such series. However, when only one loan or other transaction and one repayment occur in each taxation year of a lender, a series of loans or other transactions and repayments may still be in evidence. This could occur, for example, when a repayment is of a temporary nature, such as a loan that is repaid shortly before the end of the year and the same amount, or substantially the same amount is borrowed shortly after the end of the year....
29....Bona fide repayments of shareholder loans that result from, for example, the payment of dividends, salaries, or bonuses, are not part of a series of loans or other transactions and repayments.