PPP maximum loan amount for self-employed (1040 Schedule C Line 31)

Been reading on reddit in the small business subreddit and people seem to be confused on how to calculate the maximum loan amount for the PPP (Paycheck Protection Program).
And here is the link to the guidance from US Treasury: