while (departureCalendar.get(Calendar.HOUR_OF_DAY) < 18) {
Calendar arrivalCalendar = (Calendar) departureCalendar.clone();
arrivalCalendar.add(Calendar.HOUR_OF_DAY, (int) Math.round(durationInHours));
Booking flight = new Booking();
Date flightDepartureDate = departureCalendar.getTime();
flight.setDepartureDate(flightDepartureDate);
flight.setArrivalId(arrivalAirportId);
Date flightArrivalDate = arrivalCalendar.getTime();
flight.setArrivalDate(flightArrivalDate);
flight.setDistance(distanceInKilometers);
flight.setDuration(durationInHours);
flight.setBookingId(Math.abs(random.nextLong()));
String flightNumber = Integer.toString(Math.abs(random.nextInt()));
flight.setLabel(flightNumber);
StringBuilder description = new StringBuilder();
description.append("Flight#");
description.append(flightNumber);
description.append(StringPool.SPACE);
description.append("departing from");
description.append(StringPool.SPACE);
description.append(departureAirport.getCity());
description.append(StringPool.SPACE);
description.append(StringPool.OPEN_PARENTHESIS);
description.append(departureAirport.getCode());
description.append(StringPool.CLOSE_PARENTHESIS);
description.append(StringPool.SPACE);
description.append("on");
description.append(StringPool.SPACE);
description.append(dateFormat.format(flightDepartureDate));
description.append(StringPool.SPACE);
description.append("arriving at");
description.append(StringPool.SPACE);
description.append(arrivalAirport.getCity());
description.append(StringPool.OPEN_PARENTHESIS);
description.append(arrivalAirport.getCode());
description.append(StringPool.CLOSE_PARENTHESIS);
description.append(StringPool.SPACE);
description.append("on");
description.append(StringPool.SPACE);
description.append(dateFormat.format(flightArrivalDate));
flight.setDescription(description.toString());
BigDecimal price = new BigDecimal(priceUSD);
price.setScale(2, BigDecimal.ROUND_HALF_UP);
flight.setPrice(price);
departureCalendar.add(Calendar.MINUTE, 90);
searchResults.add(flight);
}