Health & Diet Calculators – Calculators-Free.com https://calculators-free.com Free Calculators & Free Source Code Fri, 12 Nov 2021 19:03:24 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.21 https://calculators-free.com/wp-content/uploads/2019/11/cropped-fav-32x32.png Health & Diet Calculators – Calculators-Free.com https://calculators-free.com 32 32 BMR And Daily Calories Burned Calculator https://calculators-free.com/bmr-and-daily-calories-burned-calculator-9 https://calculators-free.com/bmr-and-daily-calories-burned-calculator-9#respond Wed, 07 Aug 2019 19:03:57 +0000 https://calculators-free.com/?p=9 Introduction | Demonstration Calculator | Source Code

How The BMR & Daily Calories Burned Calculator Works

How many calories do you need to eat in a day to maintain your current weight? That’s different for each and every individual. The only way to get a highly accurate number is a lab test where you sleep at the lab and they take measurements right as you wake up from 8 hours of sleep and at least 12 hours of fasting.

This calculator uses the formula for Basal Metabolic Rate (BMR) devised by doctors at the University of Nevada Medical School and published in the American Journal of Clinical Nutrition in 1990, then uses the Harris Benedict activity multiplier to determine your estimated daily caloric burn off.

Remember that the Basal Metabolic Rate is how many calories you’d need to maintain your body weight if all you did all day was lay in bed and your only activity was eating. Just sitting up and typing a few hours a day, walking from the couch to your car, from the car to your office, etc. boosts your daily needs up by 20%. If you lead a lifestyle where you have high levels of exertion every day, it can nearly double your calorie needs.

Just fill out the fields in the form below and click “calculate my calorie needs” to get your BMR and your daily calorie needs.

Introduction | Demonstration Calculator | Source Code

Demonstration Calculator

Weight:

Age:
(in years)

Gender:

Height:

Activity Level:

Your Basal Metabolic Rate is:

Your Average Daily Calorie Need is:

Introduction | Demonstration Calculator | Source Code

Daily Calorie Needs Calculator Source Code

This calculator is licensed to you under Creative Commons Attribution 3.0. If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears. We’re giving you this code for free with a legal license to use it. All you have to do is credit us in the manner we specify.

Required Credit HTML

INSTALLATION

Just cut and paste the Javascript code and HTML form below into your page. If you want to customize the appearance of the form, feel free. Just make sure the input name and form id/name values are not changed.



<script type="text/javascript">

function calcNeeds(){

var weight = (isNaN(document.wcbubba.weight.value)) ? 0 : document.wcbubba.weight.value;
if (weight == 0) alert("Results will be inaccurate.  Weight is not a valid number.");
var height = (isNaN(document.wcbubba.height.value)) ? 0 : document.wcbubba.height.value;
if (height == 0) alert("Results will be inaccurate.  Height is not a valid number.");
var age = (isNaN(document.wcbubba.height.value)) ? 0 : document.wcbubba.age.value;
if (age == 0) alert("Results will be inaccurate.  Age is not a valid number.");
var activity = (isNaN(document.wcbubba.activity.value)) ? 0 : document.wcbubba.activity.value;

var wmult = (document.wcbubba.units.value == "pounds") ? 2.204 : 1;
var hmult = (document.wcbubba.hunits.value == "inches") ? 2.54 : 1;
var genvar = (document.wcbubba.gender.value == "male") ? 5 : -161;

var BMR = Math.round((((weight / wmult) * 9.99) + ((height * hmult) * 6.25) - (age * 4.92) + genvar) * 1);

var calburn = Math.round((((weight / wmult) * 9.99) + ((height * hmult) * 6.25) - (age * 4.92) + genvar) * activity);

document.getElementById('results').innerHTML = "Your Basal Metabolic Rate is: " + BMR + " calories.<br><br>Your Average Daily Calorie Need Is: " + calburn + " calories";

}
</script>

<form name="wcbubba" id="wcbubba" action="javascript:void()">
Weight:<br> <input type=text name="weight" size="6"> <select name="units"><option value="pounds">pounds<option value="kilos">kg</select><br><br>
Age:<br><input type=text name="age" size="6"> (in years)<br><br>
Gender:<br><select name="gender"><option value="male">male<option value="female">female</select><br><br>
Height:<br> <input type=text name="height" size="6"> <select name="hunits"><option value="inches">inches<option value="cm">cm</select><br><br>
Activity Level:<br> <select name="activity">
<option value="1.2">Little or no exercise and desk job
<option value="1.375">Lightly strenuous exercise or casual sports 1-3 days a week
<option value="1.55">Moderately strenuous exercise or somewhat aggressive sports 3-5 days a week
<option value="1.725">Strenuous exercise or aggressive sports 6-7 days a week
<option value="1.9">Strenuous daily exercise or aggressive sports and a physically active job</select><br><br>
<input type="submit" value="Calculate My Calorie Needs" onClick="calcNeeds();"></form><br>
<div id="results" style="border:1px solid #000;padding:4px;font-size:15px;font-weight:bold;width:400px;">
Your Basal Metabolic Rate is:<br><br>
Your Average Daily Calorie Need is:
</div>

]]>
https://calculators-free.com/bmr-and-daily-calories-burned-calculator-9/feed/ 0
Body Mass Index (BMI) Calculator https://calculators-free.com/body-mass-index-bmi-calculator-10 https://calculators-free.com/body-mass-index-bmi-calculator-10#respond Wed, 10 Jul 2019 18:25:56 +0000 https://calculators-free.com/?p=15 Introduction | Demonstration Calculator | Source Code

How The Body Mass Index (BMI) Calculator Works

Body Mass Index (BMI) is a general indicator of whether or not you are maintaining a healthy weight based on the ratio of your weight to your height. It’s an imperfect scale as it doesn’t account for differences in body types. For example, a 5 foot 9 inch bodybuilder who weighs 215 pounds and has a 6% body fat would be labeled obese. And there is already a new scale just for people from Southeast Asia where the ranges are lowered.

While it can be a good indicator of the healthiness of your weight if you fall within certain statistical norms that were used to develop it, it should be taken with a significant grain of salt and should not be used as a substitute for a professional evaluation of your health by a doctor.

Introduction | Demonstration Calculator | Source Code

Demonstration Calculator


Weight:

Height:

Your BMI is:

Introduction | Demonstration Calculator | Source Code

Body Mass Index (BMI) Calculator Source Code

This calculator is licensed to you under Creative Commons Attribution 3.0. If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears. We’re giving you this code for free with a legal license to use it. All you have to do is credit us in the manner we specify.

Required Credit HTML

INSTALLATION

Just cut and paste the Javascript code and HTML form below into your page. If you want to customize the appearance of the form, feel free. Just make sure the input name and form id/name values are not changed.

<script type="text/javascript">

function calcBMI(){

// Get Variables and validate to make sure they're numbers, 
// setting them to a value of 1 if they're not.

var weight = (isNaN(document.wcbubba.weight.value)) ? 1 : document.wcbubba.weight.value;

if (weight == 0) alert("Results will be inaccurate.  Weight is not a valid number.");

var height = (isNaN(document.wcbubba.height.value)) ? 1 : document.wcbubba.height.value;

if (height == 0) alert("Results will be inaccurate.  Height is not a valid number.");

// set multipliers based on whether metric or English units were selected

var wmult = (document.wcbubba.units.value == "pounds") ? 2.204 : 1;

// Turns inches/centimeters into meters

var hmult = (document.wcbubba.hunits.value == "inches") ? .0254 : .01;

// Do the calculation (weight in kg divided by the height in meters 
// times itself). The multiplication by 10 and then division by ten
// work in conjunction with Math.round() to round the value to one
// decimal place of precision.

var BMI = Math.round(((weight / wmult)/((height * hmult)*(height * hmult))) *10)/10;

// get the analysis - note this is for general purpose, there is a separate scale for
// Southeast Asian people and there may be more variants on the way

var result = "";
if(BMI < 16.5) result = "severely underweight";
else if((BMI >=16.5)&&(BMI<=18.49)) result = "underweight";
else if((BMI >=18.5)&&(BMI<=25)) result = "normal";
else if((BMI >=25.01)&&(BMI<=30)) result = "overweight";
else if((BMI >=30.01)&&(BMI<=35)) result = "obese";
else if((BMI >=35.01)&&(BMI<=40)) result = "clinically obese";
else result = "morbidly obese";

document.getElementById('results').innerHTML = "Your Body Mass Index (BMI) is: " + BMI + ".<br><br>This would be considered " + result + ".";

}
</script>

<form name="wcbubba" id="wcbubba" action="javascript:void()">
Weight:<br> <input type=text name="weight" size="6"> <select name="units"><option value="pounds">pounds<option value="kilos">kg</select><br><br>

Height:<br> <input type=text name="height" size="6"> <select name="hunits"><option value="inches">inches<option value="cm">cm</select><br><br>

<input type="submit" value="Calculate My BMI" onClick="calcBMI();"></form><br>

<div id="results" style="border:1px solid #000;padding:4px;font-size:15px;font-weight:bold;width:400px;">
Your BMI is:<br><br>
</div>

]]>
https://calculators-free.com/body-mass-index-bmi-calculator-10/feed/ 0
Smoking Calculator https://calculators-free.com/smoking-calculator-13 https://calculators-free.com/smoking-calculator-13#respond Fri, 22 Feb 2019 15:43:15 +0000 https://calculators-free.com/?p=17 Introduction | Demonstration Calculator | Source Code

How The Smoking Calculator Works

This calculator takes the number of years you smoked, average number of cigarettes you smoked a day, and the current price for a pack of cigarettes and delivers a few figures:

  • Number of cigarettes you smoked in that period.
  • How much all those cigarettes would cost today.
  • How much the tobacco in those cigarettes weighed (based on 0.68 grams per cigarette).

The results can be pretty surprising. I smoked around 3/4 of a pack a day for 23 years. That turned out to be over 126,000 cigarettes, costing more than $37,000 and with tobacco weighing in at over 188 pounds. I smoked a grown man’s weight in tobacco.

Introduction | Demonstration Calculator | Source Code

Demonstration Calculator

Number of years you smoked:

Average number of cigarettes you smoked each day:

Average price for a pack of cigarettes in your area (in dollars)

Introduction | Demonstration Calculator | Source Code

Smoking Calculator Source Code

This calculator is licensed to you under Creative Commons Attribution 3.0. If you would like to use the source code on your site or create a derivative work from it, you must include the following HTML on the page where the calculator appears. We’re giving you this code for free with a legal license to use it. All you have to do is credit us in the manner we specify.

Required Credit HTML

INSTALLATION

Just cut and paste the Javascript code and HTML form below into your page. If you want to customize the appearance of the form, feel free. Just make sure the input name and form id/name values are not changed.



<script type="text/javascript">
function calcSmokes(){

// GET VALUES FROM FORM, SET VALUE TO ONE IF THE VALUE IN THE FORM IS NOT A NUMBER

var years = (isNaN(document.wcbubba.years.value)) ? 1 : document.wcbubba.years.value;
var smokes = (isNaN(document.wcbubba.smokes.value)) ? 1 : document.wcbubba.smokes.value;
var price = (isNaN(document.wcbubba.price.value)) ? 1 : document.wcbubba.price.value;

// DO CALCULATION OF NUMBER OF CIGARETTES SMOKED ROUNDED TO WHOLE NUMBER

var smoked = parseInt(years * 365.25 * smokes);

// CALCULATE TODAY'S VALUE OF ALL CIGS ROUNDED TO TWO DECIMAL PLACES

var expense = parseInt(((smoked/20) * price) *100) / 100;

// CALCULATE WEIGHT OF TOBACCO IN GRAMS AND POUNDS TO TWO DECIMAL PLACES

var weight = parseInt((smoked * 0.68) *100) / 100;
var pounds = parseInt(((weight/1000) * 2.204) * 100) / 100;

var expout = 'You smoked approximately ' + smoked + ' cigarettes.<br>At current prices, that would cost $' + expense + '.<br>And the weight of the tobacco in all those cigarettes was ' + pounds + ' pounds (' + weight +' grams).';

document.getElementById('totals').innerHTML = expout;
}
</script>

<form name="wcbubba" action="javascript:void();">
Number of years you smoked:<br>
<input type="text" size="5" name="years"><br><br>
Average number of cigarettes you smoked each day:<br>
<input type="text" size="5" name="smokes"><br><br>
Average price for a pack of cigarettes in your area (in dollars)<br>
<input type="text" size="5" name="price"><br><br>
<input type="submit" value="Show My Totals" onclick="calcSmokes()"></form><br>

<div id="totals"></div>

]]>
https://calculators-free.com/smoking-calculator-13/feed/ 0