How to calculate futures price of stock

How is the futures price of a stock derived from the spot price?