Start with your maintenance calories and then either add or drop
10-20% based on if you're looking more to lose weight or add
muscle, basically based on if you're currently a little over or
under weight.
Then you calculate how much protein you should be consuming daily.
Which for me came to 1.2g/pound.
You want at least (you can do more) 20% of your calories from fat.