If $U_1$ and $U_2$ are subspaces of a finite dimensional vector space, then $$\dim(U_1+U_2) = \dim U_1+\dim U_2-\dim(U_1 \cap U_2).$$
How can one generalize this notion to a collection of $n$ subspaces $U_1,\ldots,U_n$?
Or what does $\dim(U_1+\cdots+U_n)$ equal?