The Credit side of P&L a/c represents income and the Debit side represents expenses.
Profit is calculated by the formula (when the Credit side is leading)
Profit = Income – Expense
Loss is calculated by the formula (when the Debit side is leading)
Loss = Expense – Income