For a body projected vertically up with a velocity v0 from the ground