Commented out time check in createPendingBooking(....) because it is erroneous, it will almost always return -1 because currentTime will most often be after checkIn and checkOut