def number_of_days_per_week
        ws = Date::DAYS_INTO_WEEK[@options[:week_start]]
        we = Date::DAYS_INTO_WEEK[@options[:week_end]]
        we += 7 if we <= ws
        we - ws + 1
      end
def number_of_days_per_week
        ws = Date::DAYS_INTO_WEEK[@options[:week_start]]
        we = Date::DAYS_INTO_WEEK[@options[:week_end]]
        we += 7 if we <= ws
        we - ws + 1
      end
We calculate the number of days between :week_start (inclusive) and :week_end (inclusive)
 DAYS_INTO_WEEK = { monday: 0, tuesday: 1, wednesday: 2, thursday: 3, friday: 4, saturday: 5, sunday: 6 }