Sometimes the animation does not match exactly with the cast bar. Rather than attempt to predict how long you have based on the animation watch the cast bar instead.