Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically Calculate Target Weight #502

Open
sbservices opened this issue Sep 12, 2022 · 26 comments
Open

Automatically Calculate Target Weight #502

sbservices opened this issue Sep 12, 2022 · 26 comments

Comments

@sbservices
Copy link

Request to have target weight calculated automatically based on the top scale of their Healthy BMI. With a manual override if the member wants to change this to a lower weight target but not allowing them to go below the bottom end of the Healthy BMI.

@alicolville
Copy link
Owner

This is something I could look at adding, but I'd need references to documented formulas :)

@YOPT21
Copy link

YOPT21 commented Sep 15, 2022

On top of this, is there any news on the hip-to-waist ratio? Still think this would be beneficial to have a full understanding of someone's health.

@alicolville
Copy link
Owner

If you could create another ticket with reference to formulas, I could look at what I could do :)

@sbservices
Copy link
Author

I think I have one for ideal weight, but its only in st & lbs & ft & inches. I am waiting for either of my clients to come back to me to let me know if this calculation works ok, as they can test on some real subjects!

Weight in pounds = 5 x BMI + (BMI divided by 5) x (Height in inches minus 60)

@alicolville
Copy link
Owner

alicolville commented Sep 25, 2022

I will add this into 10.3 if I can find a suitable formula (has to be for Kg - this is then converted under the hood to relevant weight formats). I'm struggling to find something online.

I'd prefer to reference a body like the NHS.

@YOPT21
Copy link

YOPT21 commented Sep 25, 2022

Updated ..

Weight in kilograms = 2.2 x BMI + (3.5 x BMI) x (Height in meters minus 1.5)

@alicolville
Copy link
Owner

Where is that formula from?

@YOPT21
Copy link

YOPT21 commented Sep 25, 2022

@alicolville
Copy link
Owner

So we're happy the following is correct?

Weight in pounds = 5 x BMI + (BMI divided by 5) x (Height in inches minus 60)
Weight in kilograms = 2.2 x BMI + (3.5 x BMI) x (Height in meters minus 1.5)

@YOPT21
Copy link

YOPT21 commented Sep 25, 2022

I am, how about @sbservices ??

@sbservices
Copy link
Author

These look sound to me. However, I have just fired off an email to ask my 2 customers if they're happy with those. Hopefully, they'll come back to me today or tomorrow.

@sbservices
Copy link
Author

Ok, I am confirming that these 2 calculations are good to go my side.

@alicolville
Copy link
Owner

Would you guys mind giving me a few examples.... so I can check my calculations against them?

@YOPT21
Copy link

YOPT21 commented Sep 27, 2022

A height of 1.83m with a bmi of 23.8 Should have a target weight of 79.85kg

@YOPT21
Copy link

YOPT21 commented Sep 27, 2022

Just a thought, is the calculation getting there current BMI or whats deemed a healthy BMI? My only thought is that if someone has a unhealthy bmi then this would affect the target weight?

@alicolville
Copy link
Owner

I was going to ask the same. This is a little more complicated than just the formula. I presume the BMI is based on the start weight? OR. does the BMI that goes into the calculation change with their latest weight?

@sbservices
Copy link
Author

sbservices commented Sep 28, 2022

A healthy BMI is a set number between 18.5 to 24.9. If this was set in the settings by the admin as to what they want to set as a healthy BMI, then I could enter a BMI of 24 for example. Then the calculation would be like this:
e.g.
Take someone weighing 182lbs (13stone) and 5ft 7 (67cm)
Using this formula Weight in pounds = 5 x BMI + (BMI divided by 5) x (Height in inches minus 60)

182 = 5 x 24 + (24/5)x(67 - 60) = 153.6lb (approx 10st 13.5) This formula is correct, because if this person was 10st 13.5, they would be at their set target BMI of 24. so we know their target weight is 10st 13.5lb.

So I think allowing the admins to input their preferred BMI as a variable would make things easier and work better for the admins / coaches to set targets for their own groups. Because I would know as a trained health professional that my group can be considered at their ideal goal if they are at the BMI I've set for them. Weight Watchers use to go with the highest number of the BMI which was the 24.9 and set that as their goal weight, but gave the members the option to set their own target if they were not happy with this, but the coach would recommend that they reach this as a minimum to be at their healthy BMI and that anything higher than this weight would be over of the healthy range but they could drop below it if they wanted.

@YOPT21
Copy link

YOPT21 commented Sep 28, 2022

I'm going to hop off this ticket, as I am more bias against BMI. I hope this sorts out soon for you soon @sbservices

on another note, @sbservices have your clients looked more into hip2waist ratio compared to the classic bmi? It gives a better indication of fat stored on the body compared to bmi. Let me know your thoughts 👍

@alicolville
Copy link
Owner

Oh, so you need the ability for each user to be able to set a target BMI and therefore autocalculate from there their weight?

So it's not an automated approach? i.e. if their starting BMI is between this number and this number then use the formula automatically to generate their target?

@sbservices
Copy link
Author

Preferably for admin to be able to set the target BMI for all members so that it automatically calculates what their target weight should be based on that BMI.

Then if the member says that they wish to go below this, then the coach can set a lower target weight, or the member can adjust it themselves as well. So yes, maybe like Meal Tracker where the calories target is based on 'Weight Tracker', perhaps the BMI is set by 'Admin' but they can choose to override it and set a manual one of their own.

But at least tell them that if this target is over 24.9 BMI it will give them a warning to say the target you are trying to set is over the 24.9 higher limit of the healthy BMI range, it is recommended that you set a goal within your BMI, but they can choose to proceed despite the warning. so long as they acknowledge that this wasn't recommended by their coach and is against advice, then yes.

@alicolville
Copy link
Owner

Ah ok, I may need to come back to this ticket as it's a lot more involved than I first thought (plus questioning if this method is of use to the majority). I've just changed the code to allow a "suggested target" based upon their starting BMI - however it appears more complicated so perhaps not one for 10.3.

Big thanks for all the input!!

@YOPT21
Copy link

YOPT21 commented Sep 28, 2022 via email

@sbservices
Copy link
Author

Thanks Ali for the consideration. I'm going to have a play on 'Calculated field forms' - perhaps I could do something with this for now.

@sbservices
Copy link
Author

I have the formula!!
Ideal body weight is computed in men as 50 + (0.91 × [height in centimeters − 152.4]) and in women as 45.5 + (0.91 × [height in centimeters − 152.4]). A simple alternative would be to compute ideal body weight as the weight corresponding to an ideal body mass index of 22 kg/m2.

@sbservices
Copy link
Author

Hi Ali
Can I get an update on automatic ideal weight calculations please?

@alicolville
Copy link
Owner

In what sense?

If you mean completion, then it maybe a while as it's quite low on my priority list I'm afraid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants