in the case of an applicable corporation that is a domestic corporation, the amount of income, war profits, and excess profits taxes (within the meaning of section 901) imposed by any foreign country or possession of the United States to the extent such taxes are—
(i)#
taken into account on the applicable corporation’s applicable financial statement, and
(ii)#
paid or accrued (for Federal income tax purposes) by the applicable corporation.