Whether you want to gain, maintain or lose weight, here are the formulas you need to determine your calorie needs.