calculate velocity to specific y position

Hi! I got some problem with the physic related to the velocity, as my project now i just wanna make the object jump up in a static y position with the linearVelocity. Ex: my object y position is in 500 then i set Vy = -300 object:setLinearVelocity(0, -Vy) in jump button, so when i press on jump button the object going to jump up example object jump to y position at 250, then when the object fall down i press jump again, what Vy (the velocity to make the object jump up again to reach y 250) should be use? how to calculate its?