MRP PO processing Calculations

I've seen the calculation for creating the list of items in PO suggestions but I can not locate it.

Can someone provide the link or copy paste how PO suggestions is calculated. I'm looking specifically for the tables they are hitting.

Thanks!!!