{"id":1706,"date":"2024-12-24T09:55:53","date_gmt":"2024-12-24T09:55:53","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1706"},"modified":"2025-02-07T09:26:29","modified_gmt":"2025-02-07T09:26:29","slug":"portion-size","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/portion-size\/","title":{"rendered":"Portion Size Calculators"},"content":{"rendered":"<p><center><div class=\"container123\">\r\n        <h2>Portion Size Calculator<\/h2>\r\n\r\n        <div class=\"unit-toggle\">\r\n            <button onclick=\"toggleUnit('metric')\" id=\"metricBtn\">Metric<\/button>\r\n            <button onclick=\"toggleUnit('imperial')\" id=\"imperialBtn\" class=\"active\">Imperial<\/button>\r\n        <\/div>\r\n        \r\n        <div class=\"input-group\">\r\n            <label for=\"foodType\">Food Type<\/label>\r\n            <select id=\"foodType\" onchange=\"updateTips()\">\r\n                <option value=\"lean_meat\">Lean Meat (Chicken, Fish, Lean Beef)<\/option>\r\n                <option value=\"grains\">Grains (Rice, Pasta, Quinoa)<\/option>\r\n                <option value=\"starchy_vegetables\">Starchy Vegetables (Potato, Corn)<\/option>\r\n                <option value=\"leafy_vegetables\">Leafy Vegetables<\/option>\r\n                <option value=\"fresh_fruits\">Fresh Fruits<\/option>\r\n                <option value=\"dairy\">Dairy (Milk, Yogurt)<\/option>\r\n                <option value=\"nuts\">Nuts and Seeds<\/option>\r\n                <option value=\"legumes\">Legumes (Beans, Lentils)<\/option>\r\n            <\/select>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"servings\">Number of People<\/label>\r\n            <input type=\"number\" id=\"servings\" min=\"1\" value=\"1\">\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"mealType\">Meal Type<\/label>\r\n            <select id=\"mealType\">\r\n                <option value=\"main\">Main Meal<\/option>\r\n                <option value=\"side\">Side Dish<\/option>\r\n                <option value=\"snack\">Snack<\/option>\r\n            <\/select>\r\n        <\/div>\r\n\r\n        <button onclick=\"calculatePortions()\">Calculate Portions<\/button>\r\n\r\n        <div id=\"result\" class=\"result\">\r\n            <div class=\"result-item\">\r\n                <span class=\"result-label\">Recommended Portion:<\/span>\r\n                <span class=\"result-value\" id=\"portionResult\"><\/span>\r\n            <\/div>\r\n            <div class=\"result-item\">\r\n                <span class=\"result-label\">Total Amount Needed:<\/span>\r\n                <span class=\"result-value\" id=\"totalAmount\"><\/span>\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <div class=\"tips\" id=\"tips\">\r\n            \ud83d\udca1 Select a food type to see specific portion guidelines.\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        let currentUnit = 'imperial';\r\n\r\n        const foodData = {\r\n            lean_meat: {\r\n                main: { imperial: 5, metric: 140 },\r\n                side: { imperial: 3, metric: 85 },\r\n                snack: { imperial: 2, metric: 57 },\r\n                imperial_unit: 'oz',\r\n                metric_unit: 'g',\r\n                tip: 'Lean meats provide essential protein. A palm-sized portion is approximately one serving.'\r\n            },\r\n            grains: {\r\n                main: { imperial: 1, metric: 240 },\r\n                side: { imperial: 0.5, metric: 120 },\r\n                snack: { imperial: 0.25, metric: 60 },\r\n                imperial_unit: 'cup',\r\n                metric_unit: 'ml',\r\n                tip: 'Choose whole grains when possible. One serving is about the size of your closed fist.'\r\n            },\r\n            starchy_vegetables: {\r\n                main: { imperial: 1, metric: 240 },\r\n                side: { imperial: 0.5, metric: 120 },\r\n                snack: { imperial: 0.25, metric: 60 },\r\n                imperial_unit: 'cup',\r\n                metric_unit: 'ml',\r\n                tip: 'Starchy vegetables provide energy and fiber. Limit portions to 1\/4 of your plate.'\r\n            },\r\n            leafy_vegetables: {\r\n                main: { imperial: 2, metric: 480 },\r\n                side: { imperial: 1, metric: 240 },\r\n                snack: { imperial: 0.5, metric: 120 },\r\n                imperial_unit: 'cups',\r\n                metric_unit: 'ml',\r\n                tip: 'Leafy vegetables are low in calories and high in nutrients. Fill half your plate with vegetables.'\r\n            },\r\n            fresh_fruits: {\r\n                main: { imperial: 1, metric: 240 },\r\n                side: { imperial: 0.5, metric: 120 },\r\n                snack: { imperial: 0.25, metric: 60 },\r\n                imperial_unit: 'cup',\r\n                metric_unit: 'ml',\r\n                tip: 'One serving of fruit is about the size of a tennis ball.'\r\n            },\r\n            dairy: {\r\n                main: { imperial: 1, metric: 240 },\r\n                side: { imperial: 0.5, metric: 120 },\r\n                snack: { imperial: 0.25, metric: 60 },\r\n                imperial_unit: 'cup',\r\n                metric_unit: 'ml',\r\n                tip: 'Choose low-fat dairy options when possible. One serving is about the size of a fist.'\r\n            },\r\n            nuts: {\r\n                main: { imperial: 1, metric: 30 },\r\n                side: { imperial: 0.5, metric: 15 },\r\n                snack: { imperial: 0.25, metric: 7 },\r\n                imperial_unit: 'oz',\r\n                metric_unit: 'g',\r\n                tip: 'A serving of nuts is about a small handful or the size of a golf ball.'\r\n            },\r\n            legumes: {\r\n                main: { imperial: 0.5, metric: 120 },\r\n                side: { imperial: 0.25, metric: 60 },\r\n                snack: { imperial: 0.125, metric: 30 },\r\n                imperial_unit: 'cup',\r\n                metric_unit: 'ml',\r\n                tip: 'Legumes are high in protein and fiber. One serving is about the size of a light bulb.'\r\n            }\r\n        };\r\n\r\n        function toggleUnit(unit) {\r\n            currentUnit = unit;\r\n            document.getElementById('metricBtn').classList.toggle('active', unit === 'metric');\r\n            document.getElementById('imperialBtn').classList.toggle('active', unit === 'imperial');\r\n            calculatePortions();\r\n        }\r\n\r\n        function updateTips() {\r\n            const foodType = document.getElementById('foodType').value;\r\n            const tipsElement = document.getElementById('tips');\r\n            tipsElement.innerHTML = `\ud83d\udca1 ${foodData[foodType].tip}`;\r\n        }\r\n\r\n        function calculatePortions() {\r\n            const foodType = document.getElementById('foodType').value;\r\n            const servings = parseInt(document.getElementById('servings').value);\r\n            const mealType = document.getElementById('mealType').value;\r\n\r\n            const food = foodData[foodType];\r\n            const portion = food[mealType][currentUnit];\r\n            const unit = food[currentUnit + '_unit'];\r\n            const total = portion * servings;\r\n\r\n            const portionResult = document.getElementById('portionResult');\r\n            const totalAmount = document.getElementById('totalAmount');\r\n            const resultElement = document.getElementById('result');\r\n\r\n            portionResult.textContent = `${portion} ${unit} per person`;\r\n            totalAmount.textContent = `${total} ${unit}`;\r\n            resultElement.classList.add('show');\r\n        }\r\n\r\n        \/\/ Initialize\r\n        document.addEventListener('DOMContentLoaded', () => {\r\n            updateTips();\r\n            calculatePortions();\r\n        });\r\n\r\n        \/\/ Input validation\r\n        document.getElementById('servings').addEventListener('input', function(e) {\r\n            if (this.value < 1) this.value = 1;\r\n            if (this.value > 100) this.value = 100;\r\n            calculatePortions();\r\n        });\r\n    <\/script><\/center>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-1706","post","type-post","status-publish","format-standard","hentry","category-calculator"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Portion Size Calculators - DonHit<\/title>\n<meta name=\"description\" content=\"Portion size calculators use specific input factors such as age, weight, activity level, and metabolic rate to determine the appropriate serving size for individuals.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/donhit.com\/en\/calculator\/portion-size\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Portion Size Calculators - DonHit\" \/>\n<meta property=\"og:description\" content=\"Portion size calculators use specific input factors such as age, weight, activity level, and metabolic rate to determine the appropriate serving size for individuals.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/portion-size\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-24T09:55:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-07T09:26:29+00:00\" \/>\n<meta name=\"author\" content=\"DonHit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DonHit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Portion Size Calculators - DonHit","description":"Portion size calculators use specific input factors such as age, weight, activity level, and metabolic rate to determine the appropriate serving size for individuals.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/donhit.com\/en\/calculator\/portion-size\/","og_locale":"en_US","og_type":"article","og_title":"Portion Size Calculators - DonHit","og_description":"Portion size calculators use specific input factors such as age, weight, activity level, and metabolic rate to determine the appropriate serving size for individuals.","og_url":"https:\/\/donhit.com\/en\/calculator\/portion-size\/","og_site_name":"DonHit - World of Tools","article_published_time":"2024-12-24T09:55:53+00:00","article_modified_time":"2025-02-07T09:26:29+00:00","author":"DonHit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonHit","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/donhit.com\/en\/calculator\/portion-size\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/portion-size\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Portion Size Calculators","datePublished":"2024-12-24T09:55:53+00:00","dateModified":"2025-02-07T09:26:29+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/portion-size\/"},"wordCount":10,"commentCount":0,"publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"articleSection":["Calculator"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/donhit.com\/en\/calculator\/portion-size\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/portion-size\/","url":"https:\/\/donhit.com\/en\/calculator\/portion-size\/","name":"Portion Size Calculators - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2024-12-24T09:55:53+00:00","dateModified":"2025-02-07T09:26:29+00:00","description":"Portion size calculators use specific input factors such as age, weight, activity level, and metabolic rate to determine the appropriate serving size for individuals.","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/portion-size\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/portion-size\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/portion-size\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/donhit.com\/en\/"},{"@type":"ListItem","position":2,"name":"Calculator","item":"https:\/\/donhit.com\/en\/category\/calculator\/"},{"@type":"ListItem","position":3,"name":"Portion Size Calculators"}]},{"@type":"WebSite","@id":"https:\/\/donhit.com\/en\/#website","url":"https:\/\/donhit.com\/en\/","name":"DonHit - World of tools","description":"","publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/donhit.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148","name":"DonHit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","contentUrl":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","width":400,"height":267,"caption":"DonHit"},"logo":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/"},"description":"DonHit is a website designed to provide useful tools for everyone. Its primary goal is to support and empower the community. All the tools available on the site are completely free to use.","sameAs":["https:\/\/donhit.com\/en"],"url":"https:\/\/donhit.com\/en\/author\/admin_don\/"}]}},"_links":{"self":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/comments?post=1706"}],"version-history":[{"count":2,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1706\/revisions"}],"predecessor-version":[{"id":2191,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1706\/revisions\/2191"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}