Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    822
    Thanks
    93
    Thanked 18 Times in 18 Posts

    Maths behind calorie converting

    I'm making a Android app and I want to add in some simple calorie converting.

    Does anyone know the rough maths behind it? E.g Running for x minutes burns x calories, Cycling for x minutes burns x calories etc...

  • #2
    Regular Coder Nerevarine's Avatar
    Join Date
    Jan 2013
    Location
    Phendrana Drifts
    Posts
    283
    Thanks
    0
    Thanked 17 Times in 17 Posts
    Blog Entries
    3
    The ratios are different for almost every activity. Plus, this is not a coding question, this is a calorie//activity question. I'd suggest asking elsewhere.
    Time kills us in our sleep and we watch it happen in our dreams. -K.K.
    THE END-ALL PROGRAMMING REFERENCE: CLICK HERE (Courtesy of Major Payne)
    My username was previously L0adOpt1c. :: Please read this before posting in the HTML/CSS forum.
    Validate your HTML here and your CSS here. :: Need basic HTML/CSS tutorials? Click here, don't post about it.

  • #3
    New Coder
    Join Date
    Oct 2013
    Posts
    13
    Thanks
    2
    Thanked 1 Time in 1 Post
    Quote Originally Posted by tomharto View Post
    I'm making a Android app and I want to add in some simple calorie converting.

    Does anyone know the rough maths behind it? E.g Running for x minutes burns x calories, Cycling for x minutes burns x calories etc...
    Hopefully this should help you friend.
    My source is this: http://fitnowtraining.com/2012/01/fo...lories-burned/

    Men use the following formula:

    Calories Burned = [(Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) -- 55.0969] x Time / 4.184.

    Women use the following formula:

    Calories Burned = [(Age x 0.074) -- (Weight x 0.05741) + (Heart Rate x 0.4472) -- 20.4022] x Time / 4.184.

    ______

    I guess this would be roughly accurate, using the average heart rate when doing that particular exercise.
    Good luck :-)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •