Hasan says that the profit will be according to the agreed-upon amount, and the loss will be deducted from the principal amount.