{"id":1605,"date":"2024-12-09T08:28:59","date_gmt":"2024-12-09T08:28:59","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1605"},"modified":"2025-02-07T09:40:55","modified_gmt":"2025-02-07T09:40:55","slug":"heat-index","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/heat-index\/","title":{"rendered":"Heat Index Calculator"},"content":{"rendered":"<p><center><div class=\"calculator-container\">\r\n        <div class=\"calculator-header\">\r\n            <h2>Heat Index Calculator<\/h2>\r\n        <\/div>\r\n        <div class=\"input-group\">\r\n            <label for=\"temperature\">Temperature (\u00b0F)<\/label>\r\n            <input type=\"number\" id=\"temperature\" placeholder=\"Enter temperature\">\r\n        <\/div>\r\n        <div class=\"input-group\">\r\n            <label for=\"humidity\">Relative Humidity (%)<\/label>\r\n            <input type=\"number\" id=\"humidity\" placeholder=\"Enter humidity\">\r\n        <\/div>\r\n        <button id=\"calculateBtn\">Calculate Heat Index<\/button>\r\n        <div id=\"result\" style=\"display: none;\">\r\n            <p>Heat Index: <span id=\"heatIndexValue\"><\/span>\u00b0F<\/p>\r\n            <p id=\"riskLevel\"><\/p>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        function calculateHeatIndex(temperature, humidity) {\r\n            \/\/ NOAA Heat Index Formula\r\n            const t = parseFloat(temperature);\r\n            const h = parseFloat(humidity);\r\n\r\n            if (isNaN(t) || isNaN(h)) return null;\r\n\r\n            \/\/ Check valid ranges\r\n            if (t < 80 || t > 112 || h < 13 || h > 85) {\r\n                alert('Temperature must be between 80-112\u00b0F and humidity between 13-85%');\r\n                return null;\r\n            }\r\n\r\n            const heatIndex = -42.379 + \r\n                (2.04901523 * t) + \r\n                (10.14333127 * h) - \r\n                (0.22475541 * t * h) - \r\n                (0.00683783 * t * t) - \r\n                (0.05481717 * h * h) + \r\n                (0.00122874 * t * t * h) + \r\n                (0.00085282 * t * h * h) - \r\n                (0.00000199 * t * t * h * h);\r\n\r\n            return Math.round(heatIndex);\r\n        }\r\n\r\n        function determineRiskLevel(heatIndex) {\r\n            const resultDiv = document.getElementById('result');\r\n            const riskLevelSpan = document.getElementById('riskLevel');\r\n\r\n            resultDiv.style.display = 'block';\r\n\r\n            if (heatIndex <= 80) {\r\n                riskLevelSpan.textContent = 'Low Risk';\r\n                riskLevelSpan.className = 'low-risk';\r\n            } else if (heatIndex <= 90) {\r\n                riskLevelSpan.textContent = 'Caution';\r\n                riskLevelSpan.className = 'caution';\r\n            } else if (heatIndex <= 103) {\r\n                riskLevelSpan.textContent = 'Extreme Caution';\r\n                riskLevelSpan.className = 'extreme-caution';\r\n            } else if (heatIndex <= 125) {\r\n                riskLevelSpan.textContent = 'Danger';\r\n                riskLevelSpan.className = 'danger';\r\n            } else {\r\n                riskLevelSpan.textContent = 'Extreme Danger';\r\n                riskLevelSpan.className = 'extreme-danger';\r\n            }\r\n        }\r\n\r\n        document.getElementById('calculateBtn').addEventListener('click', function() {\r\n            const temperatureInput = document.getElementById('temperature');\r\n            const humidityInput = document.getElementById('humidity');\r\n            const heatIndexValueSpan = document.getElementById('heatIndexValue');\r\n\r\n            const temperature = temperatureInput.value;\r\n            const humidity = humidityInput.value;\r\n\r\n            const heatIndex = calculateHeatIndex(temperature, humidity);\r\n\r\n            if (heatIndex !== null) {\r\n                heatIndexValueSpan.textContent = heatIndex;\r\n                determineRiskLevel(heatIndex);\r\n            }\r\n        });\r\n    <\/script>\r\n<\/center><\/p>\n","protected":false},"excerpt":{"rendered":"","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-1605","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>Heat Index Calculator - DonHit<\/title>\n<meta name=\"description\" content=\"A heat index calculator uses temperature and humidity data to compute the perceived temperature, often referred to as the &quot;feels-like&quot; temperature.\" \/>\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\/heat-index\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Heat Index Calculator - DonHit\" \/>\n<meta property=\"og:description\" content=\"A heat index calculator uses temperature and humidity data to compute the perceived temperature, often referred to as the &quot;feels-like&quot; temperature.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/heat-index\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-09T08:28:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-07T09:40:55+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=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Heat Index Calculator - DonHit","description":"A heat index calculator uses temperature and humidity data to compute the perceived temperature, often referred to as the \"feels-like\" temperature.","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\/heat-index\/","og_locale":"en_US","og_type":"article","og_title":"Heat Index Calculator - DonHit","og_description":"A heat index calculator uses temperature and humidity data to compute the perceived temperature, often referred to as the \"feels-like\" temperature.","og_url":"https:\/\/donhit.com\/en\/calculator\/heat-index\/","og_site_name":"DonHit - World of Tools","article_published_time":"2024-12-09T08:28:59+00:00","article_modified_time":"2025-02-07T09:40:55+00:00","author":"DonHit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonHit","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/donhit.com\/en\/calculator\/heat-index\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/heat-index\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Heat Index Calculator","datePublished":"2024-12-09T08:28:59+00:00","dateModified":"2025-02-07T09:40:55+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/heat-index\/"},"wordCount":9,"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\/heat-index\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/heat-index\/","url":"https:\/\/donhit.com\/en\/calculator\/heat-index\/","name":"Heat Index Calculator - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2024-12-09T08:28:59+00:00","dateModified":"2025-02-07T09:40:55+00:00","description":"A heat index calculator uses temperature and humidity data to compute the perceived temperature, often referred to as the \"feels-like\" temperature.","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/heat-index\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/heat-index\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/heat-index\/#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":"Heat Index Calculator"}]},{"@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\/1605","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=1605"}],"version-history":[{"count":2,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1605\/revisions"}],"predecessor-version":[{"id":2238,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1605\/revisions\/2238"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}