private static int getMonthLength(int yh, int mh) {
	        int flag, Dy, N, m;
	        if (yh < HStartYear || yh > HEndYear)
	        {
	            flag = 0;
	            Dy = 0;
	        }
	        else
	        {
	            N = 1;
	            for (m = 1;m < mh;m++)
	                N = 2 * N;
	            flag = MonthMap[yh - HStartYear] & N;
	            // Mask for the current month //
	            if (flag != 0)
	                Dy = 30;
	            else
	                Dy = 29; 
	        } 
	        return Dy;
	    }