How often do you have to go home before you are nailed by the IRS?

I have heard the max amount of time you can stay at one assignment is 12 months.

Is this true and if so how often or long should i go home so i am not penalized in order to return to the same assignment?