how to calculate common stock