Will the refund be credited if I close my position on the same day?

Updated