Please see this LINK for a more thorough discussion of the topic.
**Mark the post that answers your question by clicking on "Mark as Best Answer"
Thank you for the reply. Are you sure that this applies to second residences, not rental homes? I can only find information on rental homes, such as the link you referenced. This second property is not a rental.
You can generally only deduct the interest if it was used to buy, build, or substantially improve your home. It can apply to a rental home, but it does not apply to the purchase of a second home that you bought with the money from the cash-out refinance.