Article 43 of the UCMJ. Basically, it is 2 years if you are facing NJP, and 5 years if you are facing court martial. There are some exceptions (for example, time AWOL does not count against the limite etc.) and a few offenses (like capital crimes) have no statute of limitations.