Choosing the right cam

Ok. Here's a question that I didn't reply see posted. When choosing a cam, what info does one need to calculate what cam he/she should run, and what formula should he/she use