private static int calcDays(GregorianCalendar birthDay, GregorianCalendar checkDay, int birthMonth, int checkMonth) { 
    	    	
    	int days;// = checkDay.get(GregorianCalendar.DAY_OF_YEAR) - birthDay.get(GregorianCalendar.DAY_OF_YEAR);
		int checkDayOfMonth = checkDay.get(GregorianCalendar.DAY_OF_MONTH);
		int checkDayOfBirth = birthDay.get(GregorianCalendar.DAY_OF_MONTH);
    	
    	if (checkMonth == birthMonth){
    		if(checkDayOfMonth<checkDayOfBirth ){
    			days = checkDayOfMonth; 
    		} else {
    			days = checkDayOfMonth - checkDayOfBirth;
    		}; 
    	} else if (checkMonth < birthMonth){
    		days = checkDayOfMonth;
    	} else {
    		
    		int daysInBirthMonth;
            switch (birthMonth) {
                case 1:  daysInBirthMonth = 31;
                         break;
                case 2:  daysInBirthMonth = 28;
                         break;
                case 3:  daysInBirthMonth = 31;
                         break;
                case 4:  daysInBirthMonth = 30;
                         break;
                case 5:  daysInBirthMonth = 31;
                         break;
                case 6:  daysInBirthMonth = 30;
                         break;
                case 7:  daysInBirthMonth = 31;
                         break;
                case 8:  daysInBirthMonth = 31;
                         break;
                case 9:  daysInBirthMonth = 30;
                         break;
                case 10: daysInBirthMonth = 31;
                         break;
                case 11: daysInBirthMonth = 30;
                         break;
                case 12: daysInBirthMonth = 31;
                         break;
                default: daysInBirthMonth = 30;
                         break;
            }
    		days = checkDayOfMonth + daysInBirthMonth - checkDayOfBirth;
    	};
    	
    	return days;
    }