Portfolio Statistics

Is there a website or program out there that allows you to input your stocks and date of purchase, and then automatically calculates things like portfolio return and std dev, average valuation ratios (P/E, P/B), average market cap, and things like that?

microsoft money