If I apply for Social Security, Will I be penalized on my Benefits before or after my deductions for ride share driver?

Cash wise, I made $22,000 but after applying mileage and other deductions, I only made $2189.00 and incidently, I can only use this amount when applying for loans