F-1 students have 60 days to leave the U.S. from the training end date on I-20.
J-1 students have 30 days to leave the U.S, from the training end date on DS-2019.
If students travel outside of the U.S. during the study aboard period, they must present the visa document (I-20 or DS-2019) with the travel endorsement signature and the passport at the time of reentry.