How many calories should i have to gain muscle mass but not fat?

I am male 165lbs, 5’10 and in overall good shape. I run 2-4 miles and lift weights about 5-6 days a week. I want to build muscle and increase my weight to about 175-180lbs, but I dont want to add on fat. Honestly I don’t like being this small but I want to gain mass the right way.

How many calories should I take in a day to avoid adding on fat so I can stay tone, but increase my muscle size?

How many calories should I burn in the gym to loose weight?

Okay so I signed at a gym and im trying to loose weight. I weight 115 pounds and Id like to loose 5 pounds. What exercises should i do and how many calories should I loose in total? Thanks guys. Im 5’8 btw. I dont want to starve myself to loose the weight because I believe in healthy eating and lifestyle.

How many calories should i eat to gain muscle mass without getting fat?

I am currently a 17 year old teenage at 5’7 and 145 lbs. I am wanting to put on some more muscle mass, but i also don’t want to gain alot of fat. I work out for three days then take a rest day, so i work out 6 days a week. How many calories should i be taking in to gain muscle mass? What is a good diet plan for me?