How do you determine the dividends per share for preferred stock and commom stock for each year?

for common stock the basic earnings per share is calculated using this formula:

(net income - preferred dividends)/ weighted average common stock shares outstanding