Dimension Formula for the Affine Deligne-Lusztig Variety