A submarine can remain at sea for up to a year, with maintenance.

Chas