What is the best price to buy stock

How can you determine the optimal entry price for a stock purchase?