Initial velocity (u)=0; acceleration in the first phase =α; deceleration in the second phase =β and total time =t. When car is accelerating then final velocity (v)=u+αt=0+αt1 or t1=
v
α
and when car is decelerating, then final velocity 0=v−βt or t2=