See https://www.ssa.gov/pubs/EN-05-10072.pdf
You get credit for your net earnings.
View solution in original post