function updateUI() {
    const birthday = moment(birthdayField.value, 'YYYY-MM-DD');
    const lifeExpectancy = lifeExpectancyField.value;
    const totalWeeks = calculateRemainingWeeks(birthday, lifeExpectancy);
    updateRemainderBoxes(totalWeeks);
    updateWeeksIndicator(totalWeeks);
}
// update the number of boxes and weeks indicator
update the number of boxes and weeks indicator
update the number of boxes and weeks indicator
function updateUI() {
    const birthday = moment(birthdayField.value, 'YYYY-MM-DD');
    const lifeExpectancy = lifeExpectancyField.value;
    const totalWeeks = calculateRemainingWeeks(birthday, lifeExpectancy);
    updateRemainderBoxes(totalWeeks);
    updateWeeksIndicator(totalWeeks);
}
function updateUI ( ) { const birthday = moment ( birthdayField . value , 'YYYY-MM-DD' ) ; const lifeExpectancy = lifeExpectancyField . value ; const totalWeeks = calculateRemainingWeeks ( birthday , lifeExpectancy ) ; updateRemainderBoxes ( totalWeeks ) ; updateWeeksIndicator ( totalWeeks ) ; }
update the number of boxes and weeks indicator
update the number of boxes and weeks indicator