(d)the sum payable by, or the amount of refund due to, the collector, shall be determined after adjustment of the amount computed under clause (b) and clause (c) against any amount paid under section 206C or section 234E and any amount paid otherwise by way of tax or interest or fee;