public void calcTable()
    {
    	int countCalc = table.size();
    	int prevCount = 0;
    	
    	while(countCalc != prevCount)
    	{
    		prevCount = countCalc; 
    		countCalc = 0;
    		
    		for (Map.Entry<String, TableCell> entry : table.entrySet())	
        	{
        		// System.out.println("Key : " + entry.getKey() + " Value : " + entry.getValue());
    			TableCell cell = entry.getValue();
    			if(cell.calcValue(table)){
    				countCalc++;
    			}
        	}
    	}
    	
    	for (Map.Entry<String, TableCell> entry : table.entrySet())	
    	{
    		TableCell cell = entry.getValue();
    		if(!cell.isExpCalc()){
    			cell.setResultValue("#");
    		}
    	}
    }