Start with this baseline and monitor your weight for two weeks. If you aren't seeing the desired results, adjust your calories by 10-15%. Consistency is far more important than hitting the exact gram every single day.
Macronutrients ("macros" for short) are the three major nutrients that make up the caloric content of all food: Protein, Carbohydrates, and Fats. "If It Fits Your Macros" (IIFYM) is a popular dietary framework where no foods are off-limits, provided they fit into your daily gram targets.