Entropy Formula for Subshifts of Finite Type