The conditions to which the first paragraph refers are as follows:(a) an amount owing in respect of the shareholder debt is repaid in whole or in part;
(b) an amount owing as or on account of a debt or other obligation that is owed by a funder (other than an ultimate funder) to the particular ultimate funder under a funding arrangement in respect of the shareholder debt is repaid in whole or in part; and
(c) eitheri. there is a decrease in the fair market value of a property in respect of which a specified right was granted by the particular ultimate funder to a funder (other than an ultimate funder) under a funding arrangement in respect of the shareholder debt, or
ii. a right described in subparagraph i is extinguished.
In the formula in the first paragraph,(a) A is the aggregate of all amounts each of which is the amount of a loan deemed, under section 113.4, to have been received, at any time before the particular time, by an intended borrower from the particular ultimate funder in respect of the shareholder debt;
(b) B is the aggregate of all amounts deemed under this section to have been repaid, at any time before the particular time, by the intended borrower in respect of a loan referred to in subparagraph a;
(c) C is the lesser ofi. the amount owing as or on account of the shareholder debt, immediately after the particular time, and
ii. the aggregate of all amounts each of which is, immediately after the particular time,(1) an amount owing as or on account of a debt or other obligation that is owed by a funder (other than an ultimate funder) to an ultimate funder under a funding arrangement in respect of the shareholder debt, or
(2) the fair market value of a particular property in respect of which an ultimate funder has granted a specified right to a funder (other than an ultimate funder) under a funding arrangement in respect of the shareholder debt;
(d) D is the aggregate of all amounts each of which is, immediately after the particular time,i. an amount owing as or on account of a debt or other obligation that is owed by a funder (other than an ultimate funder) to the particular ultimate funder under a funding arrangement in respect of the shareholder debt, or
ii. the fair market value of a particular property in respect of which the particular ultimate funder has granted a specified right to a funder (other than an ultimate funder) under a funding arrangement in respect of the shareholder debt; and
(e) E is the aggregate determined under subparagraph ii of subparagraph c.