The visitor's permit is valid for stays up to 180 days. Paper forms are being phased out (see blue box above). However, if you were given a paper FMM when you entered Mexico, don't lose the half of the form that is handed back to you at immigration as you'll need it to exit the country.