Also remember that = means assignment and == means equality. Whatever you were trying to do with if (days = 1) I'm sure you meant if (days == 1).