When a company has available cash, retained earnings and bonds/loans covenants the company's board of directors can choose to distribute dividends among shareholders. It is a proportional distribution of income to shareholders. The date of declaration would be the date when the dividend payout is declared, the date of record would be the reference day for dividend payout (if you own shares by this day you will receive dividends), and finally the date of payment.
The amount received by a shareholder is determined by the board of directors and it is proportional to the shareholder's investment in the company.
https://mint.intuit.com/blog/investing/what-are-dividends-5225/
Weekly new ideas, terms and practice so you will not be missed out on the upcoming new innovation