Notwithstanding the provisions of subsection (c)(1)(B), for purposes of the tax imposed by section
2001, the value of the taxable estate may be determined, if the executor so elects before the expiration of the period of limitation for assessment provided in section
6501, by deducting from the value of the gross estate the amount (as determined in accordance with regulations prescribed by the Secretary) of any estate, succession, legacy, or inheritance tax imposed by and actually paid to any foreign country, in respect of any property situated within such foreign country and included in the gross estate of a citizen or resident of the United States, upon a transfer by the decedent for public, charitable, or religious uses described in section
2055. The determination under this paragraph of the country within which property is situated shall be made in accordance with the rules applicable under subchapter B (sec.
2101 and following) in determining whether property is situated within or without the United States. Any election under this paragraph shall be exercised in accordance with regulations prescribed by the Secretary.