Deductions & credits

What if we refinanced, and took cash out AFTER the tax year that we're preparing the return for. Does that count? 

 

What if that money was put right back into principle?