I am building a Carpark garage

I want to expand something in my code. , original it looks like this:

```
   private int exitSpeed = 10; // number of cars that can leave per minute

       // Let cars leave.

        for (int i = 0; i < exitSpeed; i++) {
            // Bye!
            if (exitCarQueue.peek() != null)
                exitCarQueue.removeCar();
            if ((car = specialExitCarQueue.peek()) != null)
                if (car instanceof ParkPassCar)
                    paymentMachine.pay(car);
            specialExitCarQueue.removeCar();
        }

```

I did something familiar with adding cars at certain hours, but i want to let move cars leave at certain hours aswell. but it aint working.

**Adding cars at certain hours:**

```
 private int weekDayArrivals= 30; // average number of arriving cars per hour
    private int weekendArrivals = 60; // average number of arriving cars per hour
    private int Concert = 300; // average number of arriving cars per hour
    private int atNight = 1; // average number of arriving cars per hour
    private int shoppingNight = 100;

       int averageNumberOfCarsPerHour = 0;
    if(hour >= 19 && hour<20 && day >=4 && day <= 6) {

        averageNumberOfCarsPerHour = Concert;

    }

    else if(day >= 5 && day <= 6 )
    {

        averageNumberOfCarsPerHour = weekendArrivals;

    }

    else if(hour >= 23 && hour<7)
    {

        averageNumberOfCarsPerHour = atNight;

    }

    else if(hour >= 18 && hour<20 && day == 3 )
    {

        averageNumberOfCarsPerHour = shoppingNight;

    }

    else{

        averageNumberOfCarsPerHour = weekDayArrivals;
    }

```

But adding if and else statements at the exit lines of code does not work.
I hope i provided enough code so you guys can maybe help me out.

thanks in advance