Correct period choosing logic.