Calculation of next week number (constrained by max 3) with rollover
You can use the modulo operator to wrap around your week counter:

public int calculateNextWeek(int week, int day) {
    if (day == 3) {
        return (week % 3) + 1;
    }

    return week;
}