how to calculate vertical angle of cone

It depends on the given information.

If base radius (r) and height (h) are given, then angle of cone is given as
2tan-1r/h.