Business & farm

I am confused. Please help me understand. I made no loan to the S Corp. I initially invested $20k as capital contribution to the S Corp. This year (the first year) has a loss of $12k. Later in the year I took $2k distribution as return of initial capital.

 

So the regained earning is negative $12k, right?