How is the expected close date of an opportunity initially set?

When defining a sales method, administrators can insert the average close window of the sales method, in days. The value is then used to set the default close date of opportunities using that sales method.