§ 505. Determination of tax liability
(a)
(1)
Except as provided in paragraph (2) of this subsection, the court may determine the amount or legality of any tax, any fine or penalty relating to a tax, or any addition to tax, whether or not previously assessed, whether or not paid, and whether or not contested before and adjudicated by a judicial or administrative tribunal of competent jurisdiction.
(2)
The court may not so determine—
(A)
the amount or legality of a tax, fine, penalty, or addition to tax if such amount or legality was contested before and adjudicated by a judicial or administrative tribunal of competent jurisdiction before the commencement of the case under this title;
(b)
(1)
(2)
A trustee may request a determination of any unpaid liability of the estate for any tax incurred during the administration of the case by submitting a tax return for such tax and a request for such a determination to the governmental unit charged with responsibility for collection or determination of such tax at the address and in the manner designated in paragraph (1). Unless such return is fraudulent, or contains a material misrepresentation, the estate, the trustee, the debtor, and any successor to the debtor are discharged from any liability for such tax—
(A)
upon payment of the tax shown on such return, if—
(c)
Notwithstanding section
362 of this title, after determination by the court of a tax under this section, the governmental unit charged with responsibility for collection of such tax may assess such tax against the estate, the debtor, or a successor to the debtor, as the case may be, subject to any otherwise applicable law.