The acceleration of the oobject will be g down.
now you can calculate the time spent to go up, because v0 = g*t
the height traveled up: h=v0*t - 1/2*g*t^2
now down: h+h0 = 1/2*g*t^2
To look at it in a graphical way:
draw a parabola upside down. x coordinate is the time, y is the height, the steepnes of the parabola is the speed. Move the parabola such that
- it is raising at x=0 : the initial speed is positive
- it is positive at x=0: initially it is in up in the window
Now note whether the y distance of the top of the parabola form the origo (time spent up) is equivalent to the y distance from the top of the parabola to where it cuts the horizontal axis (time spent down).