Optimal flowering period for cannabis