Mortgage Interest Limitation

I refinanced my mortgage loan in 2023, it was originally acquired before 2017. Any mortgage interest limitation on the refinanced loan? The refinanced loan balance is over $750k. And how to calculate the average mortgage loan balance?