@MSIP,
MSIP wrote:
the direction of fire is vertical as same like gravity
So the thrust is "down" toward the Earth, causing the rocket to ascend?
In this case, the rocket will have to overcome the force of gravity. Basically, subtract the force exerted by gravity from the force created by the rocket. Use the net force to calculate the acceleration.