private static float calculateDividend(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.DIVIDEND_HISTORY.get(ticker).entrySet()) {
	 sum+=ent.getValue();
		}
		if (sum > 0) {
			if (EarningsTest.singleton.averageDividend.isSelected())
				dividend = sum / dividends.size();
			else
				dividend = sum;
		}
		return dividend;
	}