If you understand some physics, the equations for acceleration and deceleration should be familiar to you. If not, they are not that difficult to implement. For the purposes of this project you don't need to fully understand the equations, you just need to understand it enough to use it.
For acceleration
For deceleration
The equations are identical for decleration, except that the value of a is -1/7200. The negative sign indicates that the vehicle is slowing down.