packingList.push('Light Jacket', 'Comfortable Clothing');
            }

            for (let i = 0; i < duration; i++) {
                packingList.push('Day ' + (i + 1) + ' Outfit');
            }

            return packingList;
        }

        function displayPackingList(packingList) {
            const listElement = document.getElementById('list');
            listElement.innerHTML = '';

            packingList.forEach(item => {
                const listItem = document.createElement('li');
      