This setting is only used by the 'weekly' and 'topics' course formats.
In the 'weekly' format, it specifies the number of weeks that the course will run for, starting from the course starting date.
In the 'topics' format, it specifies the number of topics in the course.
Both of these translate to the number of "boxes" down the middle of the course page.