ii. if the costs were incurred by the particular partnership and the particular corporation is a member of the particular partnership at the end of the fiscal period of the particular partnership that ends in the particular year,(1) by the particular corporation’s share, for that fiscal period, of the amount of that benefit or advantage, relating to those costs, that the person, other than a person referred to in subparagraph 2, or the partnership has obtained, is entitled to obtain or may reasonably expect to obtain, on or before the day that is six months after the end of the fiscal period, other than such a benefit or advantage that reduced, under subparagraph i of paragraph b, the amount of those costs, or
(2) by the amount of that benefit or advantage, relating to those costs, that the particular corporation or a person with which it does not deal at arm’s length has obtained, is entitled to obtain or may reasonably expect to obtain, on or before the particular corporation’s filing-due date for the particular year, other than such a benefit or advantage that reduced, under subparagraph ii of paragraph b, the corporation’s share of those costs.