Investors & landlords

Does it matter what the funds are spent on? I understand if you use it all to repair the place, that makes it a deductible expense. But what if you take out a second mortgage of $75,000 and spend it on other debts and items not related to the rental property... Would the interest on the second mortgage still be a deductible expense against the rental property? Thanks!!