Finite-Dimensional Distribution Formula for Markov Chains