Except as provided by paragraph (3) and by section
7463, if the Tax Court finds that there is no deficiency and further finds that the taxpayer has made an overpayment of income tax for the same taxable year, of gift tax for the same calendar year, or calendar quarter, of estate tax in respect of the taxable estate of the same decedent, or of tax imposed by chapter 41, 42, 43, or 44 with respect to any act (or failure to act) to which such petition relates, in respect of which the Secretary determined the deficiency, or finds that there is a deficiency but that the taxpayer has made an overpayment of such tax, the Tax Court shall have jurisdiction to determine the amount of such overpayment, and such amount shall, when the decision of the Tax Court has become final, be credited or refunded to the taxpayer. If a notice of appeal in respect of the decision of the Tax Court is filed under section
7483, the Secretary is authorized to refund or credit the overpayment determined by the Tax Court to the extent the overpayment is not contested on appeal.