(d)(i)the amount payable by; or(ii)the amount of refund due to, the deductor or collector shall be determined after adjustment of the amount computed under clauses (b) and (c) against any amount paid under section 397(3) or 398 or 427 and any amount paid otherwise by way of tax or interest or fee;