One thing that is missing is that when the end_time is nil, it should default to now. 

Also, the start_time should default to 1.year.ago