how would I do show the total number of cases a company has that are not resolved in a calculated field?

I would like to show how many cases a company has got open that have not been resolved. I would like to show this in a calculated field inside of an account.