You have a constant acceleration, you can simply use the basic equations of motion to calculate the velocity and distance:
Just plug those equations in the respectively intervals using the results of the last ones as initial conditions and you're done.