It's based on your self-employment earnings, not your max AGI. So if your earnings from self-employment are not enough to support the deduction then you can't take the full amount.
@beth37
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"