Suppose that $A,B,$ and $C$ are commutative unital rings, $A\to B$ is flat, and $A\to C$ is any map. I am trying to determine whether $$ \dim B\otimes_AC=\dim B+\dim C-\dim A $$ Any counterexamples or references? I am taking the Krull dimension of the zero ring to be -1 (in case a tensor product is 0).
Thanks for any feedback.
Edit: By $\dim$ I mean Krull dimension.