Pickleball Calories Burned Calculator
Pickleball Calories Burned Calculator
Pickleball Calories Burned Calculator
const weight = weightUnit === "lb" ? weightInput.value : weightInput.value / 2.20462; // Convert kg to lb if necessary const minutes = minutesInput.value; let calories;
if (playStyleInput === "casual") { if (weightInput.value < 150) { calories = Math.round(250 * (weight / 150) * (minutes / 30)); } else if (weightInput.value < 200) { calories = Math.round(250 + ((weight - 150) / 50) * 85 * (minutes / 30)); } else { calories = Math.round(335 * (weight / 200) * (minutes / 30)); } } else { if (weightInput.value < 150) { calories = Math.round(360 * (weight / 150) * (minutes / 30)); } else if (weightInput.value < 200) { calories = Math.round(360 + ((weight - 150) / 50) * 115 * (minutes / 30)); } else { calories = Math.round(475 * (weight / 200) * (minutes / 30)); } } caloriesResult.innerText = "Calories Burned: " + calories + " kcal"; }
The post Pickleball Calories Burned Calculator first appeared on Blog PickeBall.
from Blog PickeBall https://ift.tt/UuRnizf
via IFTTT
Nhận xét
Đăng nhận xét