Draw spaceship trajectory

Given a spaceship position, velocity, weight, and force vector currently applied to the ship body, I would like to calculate where it will be in the next second and a second after that, and so on.
To elaborate: The direction of a ship’s movement is changed over time by the force applied to the ship hull. This force can be applied from any angle. If from the left side, the ship is going to change direction to the right, if from the front, the ship is going to slow down, and so on…

I need a formula to calculate the ship’s projected position for every n next seconds (given the input data does not change).

thank you

To answer my own question. A kind person on physics stacexchange gave me this formula:

Happy to say it works.