Implemented period length controllers for month, year.
Passing boundary checking tests, but more thorough testing is needed.