Source: https://money.stackexchange.com/questions/26884/how-is-money-in-a-roth-ira-classified-as-either-earnings-or-contribution-ba