There are no maximum durations except for margin-trades made within the United States. These trades have a maximum duration of 28 days.
Perpetuals have no max duration but they are unavailable to US persons.
For more information about what happens at expiry, read this held article.