def merch_year_and_month_from_dates(start_date, end_date)
      merch_months = []

      middle_of_start_month = Date.new(start_date.year, start_date.month, 14)
      middle_of_end_month = Date.new(end_date.year, end_date.month, 14)
      date = middle_of_start_month
        
      while date <= middle_of_end_month do
        merch_months.push(date_conversion(date))
        date = date >> 1
      end
      merch_months
    end
def merch_year_and_month_from_dates(start_date, end_date)
      merch_months = []

      middle_of_start_month = Date.new(start_date.year, start_date.month, 14)
      middle_of_end_month = Date.new(end_date.year, end_date.month, 14)
      date = middle_of_start_month
        
      while date <= middle_of_end_month do
        merch_months.push(date_conversion(date))
        date = date >> 1
      end
      merch_months
    end
Returns an array of merch_months and year combination that falls in and between the start and end date

 Ex: if start_date = August 1, 2018 and end_date = October 1, 2018
 it returns [[2019, 1], [ 2019, 2], [2019, 3]]