private static float calculateDividendPre(String ticker) {
		//DIVIDEND DUPLICATE COUNT NEEDS FIX HERE
		ArrayList<Float> dividends = new ArrayList<Float>();
		float sum = 0;
		float dividend = 0;
		int dividendId = 82;
		for (Entry<Float, float[][]> ent : Database.DB_ARRAY.entrySet()) {
			float possibleDividend = ent.getValue()[Database.dbSet
					.indexOf(ticker)][dividendId];
			if (possibleDividend > 0) {
				dividends.add(possibleDividend);
				sum += possibleDividend;
			}
		}
		if (sum > 0) {
			if (EarningsTest.singleton.averageDividend.isSelected())
				dividend = sum / dividends.size();
			else
				dividend = sum;
		}
		return dividend;
	}