How to Gross Profit in Gross Profit report is calculated?

Hi Guys,

We have a seperate gross profit report in ERPNext. But how to map this reported gross profit to the Trial Balance AND to the Profit and Loss Statement (the Profit and loss statement does not have a gross profit)

I need to see what Ledger accounts are used in gross profit calculation because I have a suspition that my Gross Profit is wrong.