Where are you borrowing this money without any interest? "Money you borrow" and "cost to borrow that money" are rarely the same value.
- Your bank account (an asset) goes up by $1MM
- Your loan account (a liability) goes up by $1MM
So equity is unchanged at that point.
But every month after that, you'll be charged interest:
- Loan account (liability) increases (CR)
- P+L account (equity) decreases (DR)
Can you in fact do that? It's possible with a residential mortgage in the US, because there are laws prohibiting prepayment penalties. And I think even those don't apply to refinanced mortgages?