When is the Best Time to Invest in the Stockmarket?