Now, when a company says it will pay dividend to share shareholders who bought shares before a certain date, now,does the duration of purchase considered or, the company pays even if the shares were bought just a few days before the dividend due date.