protected static Ptg calcColumns( Ptg[] operands )
	{
		//
		if( operands[0] instanceof PtgFuncVar )
		{
			// we need to return the col where the formula is.
			PtgFuncVar pfunk = (PtgFuncVar) operands[0];
			try
			{
				int loc = pfunk.getParentRec().getColNumber();
				loc += 1;
				return new PtgInt( loc );
			}
			catch( Exception e )
			{
			}
			;
		}
		else
		{
			// It's ugly, but we are going to handle the four types of references seperately, as there is no good way
			// to generically get this info
			try
			{
				if( operands[0] instanceof PtgArea )
				{
					PtgArea pa = (PtgArea) operands[0];
					int[] loc = pa.getIntLocation();
					int ncols = (loc[3] - loc[1]) + 1;
					return new PtgInt( ncols );
				}
				if( operands[0] instanceof PtgArray )
				{
					PtgArray parr = (PtgArray) operands[0];
					return new PtgInt( parr.nc + 1 );
				}
			}
			catch( Exception e )
			{
			}
			;
		}
		return new PtgInt( -1 );
	}