Deductions & credits

No, you're not doing it right. If the balances you provided were the actual average balances, your interest deduction would be approximately 750K / (765K +1240) * (21K + 6K) = 10.1K. So it seems TT is doing it correctly.