private void calculateStudentFines(Book book, User user, int monthBack, int dayBack, int yearBack) { 
		int daysInMonth = 31;
		int monthsInYear = 12;
		int daysInYear = 366;
		
		double totalDaysOut = 0;
		
		int yearDiff = yearBack - book.getYearOut();
		int monthDiff = monthBack - book.getMonthOut();
		int dayDiff = dayBack - book.getDayOut();
		
		double finesToAdd = 0;
		
		if (!(yearDiff == 0)) {
			totalDaysOut = ((monthsInYear - book.getMonthOut())*daysInMonth) + (daysInMonth - book.getDayOut()) + dayBack + monthBack*daysInMonth + ((yearDiff-1)*daysInYear);
		}
		else if (yearDiff == 0 && !(monthDiff == 0)) {
			totalDaysOut = (daysInMonth - book.getDayOut()) + dayBack + ((monthDiff-1)*daysInMonth);
		}
		else if (yearDiff == 0 && monthDiff == 0) {
			totalDaysOut = dayDiff;
		}
		
		finesToAdd = (totalDaysOut-14)/10;
		
		user.setFines(user.getFines() + finesToAdd);
	}