
PHP developer to assist with an error in a formula on our site
- or -
Post a project like this1292
£500(approx. $672)
- Posted:
- Proposals: 28
- Remote
- #3528841
- OPPORTUNITY
- Awarded
♛ Most Trusted #1 Team |19+ years of expertise in Website, Mobile Apps, Desktop & Console Games. Wordpress, ReactJS, Shopify, Laravel, Python, React Native, Flutter, Unity, Unreal Engine and AR/VR




Microsoft Azure Office 365 Sharepoint Google Workspace Online Marketing Consultant,

783515558552822723943205434128342272425569116591073202768312677774768744352792334





Description
Experience Level: Expert
Estimated project duration: less than 1 week
I am looking for a web developer who can help us with some mathematical formulas on our website.
We have a macro calculator which generates the daily total carbs, protein and fats that a user is allowed to consume based on their fitness goals. The daily amounts are then divided as equally as possible between meals:
• 4 meals, 3 snacks if the user wants to Gain Muscle
• 3 meals, 3 snacks if the user has any other goal (Lose 10%, Lose 20%, Improve Fitness)
The user then chooses their preferred food items for carbs, protein and fats for each meal. All of this works perfectly.
The issue that we have is that, in order to keep within their daily limits, we need a calculation or formula that gets them as close to their limits as possible while incorporating the macro values of all the food items in their meals.
For example, a carbohydrate may also have some protein and some fat in it. In this instance, when adding the daily values up for the user, a carb may also contribute to the protein and fat totals.
Our current calculation gives us approximately 200g of carbs, 200 grams of protein and 200g of fat per meal, which is incorrect.
I have attached a few screenshots showing examples of the backend, the values generated by our macro calculator and what our 'See Your Quantities' page looks like. As you can see, the values are incorrect and do not add up properly compared to the total daily allowances.
We just need to amend the calculation so that the carbs, proteins and fats all add up correctly throughout the whole day, for each user and their individual needs, while not exceeding the daily total amounts set by the macro calculator. They should be very close but not exceed the amounts.
If you think you can help, we would love to hear from you!
**Please note; budget and delivery time set below are advisable and can be discussed**
Thank you,
Dan - BodyPrime
We have a macro calculator which generates the daily total carbs, protein and fats that a user is allowed to consume based on their fitness goals. The daily amounts are then divided as equally as possible between meals:
• 4 meals, 3 snacks if the user wants to Gain Muscle
• 3 meals, 3 snacks if the user has any other goal (Lose 10%, Lose 20%, Improve Fitness)
The user then chooses their preferred food items for carbs, protein and fats for each meal. All of this works perfectly.
The issue that we have is that, in order to keep within their daily limits, we need a calculation or formula that gets them as close to their limits as possible while incorporating the macro values of all the food items in their meals.
For example, a carbohydrate may also have some protein and some fat in it. In this instance, when adding the daily values up for the user, a carb may also contribute to the protein and fat totals.
Our current calculation gives us approximately 200g of carbs, 200 grams of protein and 200g of fat per meal, which is incorrect.
I have attached a few screenshots showing examples of the backend, the values generated by our macro calculator and what our 'See Your Quantities' page looks like. As you can see, the values are incorrect and do not add up properly compared to the total daily allowances.
We just need to amend the calculation so that the carbs, proteins and fats all add up correctly throughout the whole day, for each user and their individual needs, while not exceeding the daily total amounts set by the macro calculator. They should be very close but not exceed the amounts.
If you think you can help, we would love to hear from you!
**Please note; budget and delivery time set below are advisable and can be discussed**
Thank you,
Dan - BodyPrime

BodyPrime Ltd
100% (2)Projects Completed
2
Freelancers worked with
2
Projects awarded
100%
Last project
25 Mar 2022
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies