Retirement tax questions

How much was your earned income?  What kind of income?   From W2 or a Net Profit on Schedule C for self employment.   If you only have self-employment income you can only contribute up to your net profit reduced by the deduction allowed for one-half of your self-employment taxes then only up to the max IRA limit.