Modeling the length of day and extrapolating the rotation of the Earth