See about this problem here
Video Link : 5748
See the Mathcad-sheet in attach.
Presumably you are launching from an aerial platform at least 2km hig!!
The first part of the flight - is a virtual flight. The rocket is on the launch platform and burns fuel as long as its thrust becomes equal weight.