best time to buy dividend stock without losing money