code: protected int handleGetMonthLength(int extendedYear, int month) {
          if (month < 0 || month > 11) {
              int[] remainder = new int[1];
              extendedYear += floorDivide(month, 12, remainder);
              month = remainder[0];
          }
  
          if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) {
              return 31;
          }
  
          if(month >= 1 && month <=5) {
              return 31;
          }
  
          return 30;
      }
docs: {@inheritDoc}