ProjectSettings.DemoVersionDays

This specifies how many days a demo or unactivated version will run before it expires.

public sealed int DemoVersionDays { get; set; }

See also:

Class ProjectSettings