Any foreign currency gain or loss which is attributable to a section
988 transaction and which is properly taken into account for the portion of the calendar year after October 31 shall not be taken into account in determining the amount of the ordinary income of the regulated investment company for such calendar year but shall be taken into account in determining the ordinary income of the investment company for the following calendar year. In the case of any company making an election under paragraph (4), the preceding sentence shall be applied by substituting the last day of the company’s taxable year for October 31.