It is natural English in terms of sentence construction, and would pass I guess. But, being picky, "optimum" to me usually suggests a maximum, or peak, with the desirability of the outcome dropping off when any parameter is adjusted in any direction. So, "the optimum time is one to two weeks" would IMO be a more standard use of "optimum".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.