Solo 401 k contribution before any deductions

As a self-proprietor, I opened 401K solo plan. I received $22,000 from my business for the year 2021 before any deductions. I'm over 65.
As an employee, I put $20,000 to 401K. But after all deductions net earnings will be less than $20,000. Did I put too much in the 401K?