function calculateDin() { // Get the values selected in the form const weight = Number(document.getElementById("weight").value); const height = Number(document.getElementById("height").value); const age = Number(document.getElementById("age").value); const bootLength = Number(document.getElementById("bootLength").value); const skierType = Number(document.getElementById("skierType").value); // Perform the calculation const dinSetting = (weight + height + age / 10) * bootLength / skierType; // Display the result document.getElementById("dinSetting").innerHTML = "DIN Setting: " + dinSetting.toFixed(2); }