docs: def _convert_weekday_pattern(p_weekday):
      """
      Converts a weekday name to an absolute date.
  
      When today's day of the week is entered, it will return next week's date.
      """
      day_value = {
          'mo': 0,
          'tu': 1,
          'we': 2,
          'th': 3,
          'fr': 4,
          'sa': 5,
          'su': 6
          }
  
      target_day_string = p_weekday[:2].lower()
      target_day = day_value[target_day_string]
  
      day = date.today().weekday()
  
      shift = 7 - (day - target_day) % 7
      return date.today() + timedelta(shift)