How is V1 speed calculated before takeoff?

How is V1 speed calculated before takeoff?