change 30.days.ago to at_beginning_of_month