Consideration of Dividend

In order to gain dividends, when should I buy mutual fund investment units ?