A good rule is to recalculate your macros every 4–6 weeks, or sooner if your body weight, activity level, training volume, or goal changes significantly.
You may also want to update them if progress stalls, if you begin a new training phase, or if your lifestyle becomes more or less active. As your body changes, your calorie and macro needs can change too.