How to calculate share price?

How is the share price of a company calculated? What factors determine its valuation in the market?