Both are included in TP's basis. The presumption is that you're going to repay it that's why you have no GI when you get loan money.