Help with some programming!!

Ok, if you notice, I did just that in my code(See the last part where there is the int j)..
And I put the condition as j = numberofdays..
But it doesn't not work...And I can't identify the problem..

else if (setCounter == 7)
     {
     if (feedinterval == 2)
     {
     for (int j = 0; j <= numberofdays; j++)
     {
       servo();
       delay (12000);