Retirement account contributions

The only income my wife and I have is from my small business. My understanding is that the maximum contribution I can make to my solo 401k, my wife's IRA and my IRA is the net profit of my business. Is this correct?