After you file

if personal how much do the outstanding mortgage balances total for your return.

only mortgages on a first and second home can be used.  For mortgages incurred after 12/15/2017 the limit is $750K.  if you refinanced, the balance allowed will be even lower. The mortgage must be secured by the property.