Yes, there is a tool within TurboTax to help you determine how much you can contribute.
Use the steps below to go to the self-employed retirement section of your return. Go through the screens until you get to the question regarding making a contribution to an individual 401k where you will indicate that you have (or are) contributed. Then, there will be a check-box near the entry for the amount you contributed or plan to contribute. The box is labeled Maximize. Checking the box will allow TurboTax to calculate the maximum that you can contribute based on your business income.
Also, the maximum permissible employer contribution is not 25% of earned income. The maximum permissible employer contribution for the self-employed individual is 20% of the result of subtracting the deductible portion of self-employment taxes from net profit. Depending on the amount of profit and self-employment tax, you might also be limited to less than that.