A sharp estimate of the extinction time for the mean curvature flow