IF $\sum\limits_d X_{i,d}\ge6$ THEN $Y_i = 1$ (strictly)
AND
IF $\sum\limits_d X_{i,d}<6$ THEN $Y_i = 0$ (strictly)
$X$ and $Y$ are binary variables.
What I'm actually trying to do is to charge the objective function some value whenever $Y_i = 1$. That is, for each $i$, if $Y_i=1$, the term $C\cdot Y_i$ is charged in the objective function only and only if $\sum\limits_d X_{i,d}\ge6$.
Here are some more details about the problem if needed.
$I =$ set of workers (a total of 5 workers);
$D =$ set of days (a total of 6 days);
$C=$ cost for each worked day is fixed.
If a worker worked for 6 days, then the cost of the sixth day is double the normal cost i.e. $= 2C$.
Define $X_{i,d} = 1$ if worker $i$ works on day $d$ and 0 otherwise, so I want to charge the objective function a cost if the sum of $X_{i,d}$ over $d$ equals $6$ for each $i\in I$.
How can introduce such a variable that would charge the objective function?