With this online calculator you can calculate of the first cosmic velocity.
Formula:
V = √(G*M/R)
V - first cosmic velocity
G - gravitational constant
M - mass of the object
R - radius of the object
The first cosmic speed is the minimum speed that an object must be given to make it move in a circular orbit around the planet.