Astronaut Diet | Almond Benefits | Walnut Benefits | Banana | Calories Calculator | BMI Calculator |
---|
—
Calorie Calculator
Sedentary (little or no exercise)
Lightly active (light exercise/sports 1-3 days/week)
Moderately active (moderate exercise/sports 3-5 days/week)
Active (hard exercise/sports 6-7 days a week)
Very active (very hard exercise/sports & physical job or 2x training)
function calculateCalories(event)
event.preventDefault();
// Get the input values
const weight = parseFloat(document.getElementById(‘weight’).value);
const height = parseFloat(document.getElementById(‘height’).value);
const age = parseInt(document.getElementById(‘age’).value);
const lifestyle = document.getElementById(‘lifestyle’).value;
// Calculate the BMR (Basal Metabolic Rate)
let bmr;
if (lifestyle === ‘sedentary’)
bmr = 1.2 * (66 + (13.75 * weight) + (5 * height) – (6.75 * age));
else if (lifestyle === ‘light’)
bmr = 1.375 * (66 + (13.75 * weight) + (5 * height) – (6.75 * age));
else if (lifestyle === ‘moderate’)
bmr = 1.55 * (66 + (13.75 * weight) + (5 * height) – (6.75 * age));
else if (lifestyle === ‘active’)
bmr = 1.725 * (66 + (13.75 * weight) + (5 * height) – (6.75 * age));
else if (lifestyle === ‘very-active’)
bmr = 1.9 * (66 + (13.75 * weight) + (5 * height) – (6.75 * age));
// Display the result
const resultElement = document.getElementById(‘calorieResult’);
resultElement.textContent = `Estimated daily calorie intake: $bmr.toFixed(2) calories`;
—
GM Diet |
Dixit Diet |
Balanced Diet |
Healthy Food List |
2 meal a Day Diet |
Military Diet |
---|