Home loans

I actually don’t know the answer. Based on the interest tracing rule, wouldn’t I be able to deduct mortgage interest as qualified residential home deduction once I pay off the second mortgage in two years?