Assume you spent $4.5K on refinancing and got $45K back. Let's take a very conservative assumption that your cash-on-cash return after the refinance is 10%, then you use this $45K in the next project and you will get the $4.5K back in one year, not to count other benefits of the second property.