These should be moved to methods on the model.
```ruby
  GradingPeriod.for_dates(Time.now+ 4.month, Time.now + 4.moths).first
```