private static int getDayOfWeek(int yh, int mh, int dh){
			Double doubleHolder = hCalendarToJD(yh,1,1)-1;
			for (int i = 1; i < mh; i++) {
				doubleHolder += getMonthLength(yh, i);
			}
			doubleHolder+=dh;
			//Fix 2015 bug. there is 2020 bug
			if(doubleHolder > 2456955.375512 && doubleHolder < 2457310.109648)
				return ((doubleHolder.intValue()+2)%7)+1;
			return ((doubleHolder.intValue()+1)%7)+1;
	    }