const gender = $w("#gender").value.toLowerCase(); // Make sure gender is in lowercase for comparison const weight = parseFloat($w("#weight").value); const height = parseFloat($w("#height").value); const age = parseFloat($w("#age").value); let bmi = (weight / Math.pow(height / 100, 2)).toFixed(1); let bmr, fatpercentage; if (gender === "male") { bmr = Math.round((66.5 + 13.75 * weight + 5.003 * height - 6.775 * age)); fatpercentage = Math.round(1.39 * bmi + 0.16 * age - 10.34 * 1 - 9); } else if (gender === "female") { bmr = Math.round(655.1 + 9.563 * weight + 1.850 * height - 4.676 * age); fatpercentage = Math.round(1.39 * bmi + 0.16 * age - 10.34 * 0 - 9); } $w("#bmi").text = `Body Mass Index: ${bmi}`; $w("#bmr").text = `Basal Metabolic Rate: ${bmr} kcal`; $w("#fat").text = `Body Fat Percentage: ${fatpercentage.toFixed(1)} %`; }
top of page
BE D BEST FAMILY.jpg

Welcome to
BE D BEST

“Good health is a lifelong quest, a journey where daily choices matter most. It's about nourishing your body, nurturing your mind, and embracing a lifestyle that promotes well-being. Remember, the pursuit of health is an investment in your future vitality and happiness."

Vision

A vision for a health community serving society is one where healthcare services are readily available and affordable, promoting the overall well-being of individuals and families. It's a community that prioritizes preventative care, health education, and outreach programs to address the diverse needs of its population. Collaboration among healthcare providers, community organizations, and individuals is key to achieving this vision and ensuring that healthcare is a fundamental right accessible to all.

Your Result Is:

Calculate Your Intake!

Metric

Imperial

© 2024 by BE D BEST. 

bottom of page