fixed end condition for creating weeks array