There are 2 types of contracts.
Closed and open

In open contract it is for indefinite period and duration is not mentioned.

Whereas in Closed duration is mentioned.