Earning per share: how to calculate