Entropy Formula for Hyperbolic Toral Automorphisms