How to Calculate Earnings Per Share?

Companies performances are compared on EPS. To calculate EPS you must know the total number of shares, Net Income of the company divided by the number of shares gives EPS.