Deductions & credits

Because the second home was purchased after 2017, you are limited to $750,000.   The prior answer is incorrect.