(A) A refund or credit may be allowed for an overpayment of tax withheld under this chapter to:
(1) the withholding agent to the extent that the withholding agent did not withhold the overpayment amount from the taxpayer; or
(2) the taxpayer to the extent that the overpayment was withheld from the taxpayer.
(B) A refund or credit may be granted to a withholding agent who has withheld taxes in error if the withholding agent furnishes evidence that the amount erroneously withheld has been refunded or unconditionally credited to the taxpayer and the amount is refunded or credited to the taxpayer before the issuance of the original wage and tax statement for the calendar year.
(C) The withholding agent or taxpayer shall apply for a refund or credit under this section within three years from the deemed date of the overpayment. A refund or credit is not allowed for less than one dollar. For purposes of this section, the deemed date of overpayment is the original due date of the return in which the withholding is credited against tax imposed by Chapter 6 of this title.