It's all outlined Here. And though they say it is simple, figuring out the dollar amount in advance doesn't look too simple to me.
The quick tips are;
Buy stuff made in Mexico or USA while there (NAFTA)
Stay more than 48 hours ($400 of exempt goods)
Bookmarks