{"id":947,"date":"2024-12-14T22:27:21","date_gmt":"2024-12-14T16:27:21","guid":{"rendered":"https:\/\/ashrafimahbub.com\/?p=947"},"modified":"2024-12-26T12:27:10","modified_gmt":"2024-12-26T06:27:10","slug":"hr-analytics-calculator","status":"publish","type":"post","link":"https:\/\/ashrafimahbub.com\/?p=947","title":{"rendered":"HR Analytics &#8211; Interactive Calculator and Formula Explanations"},"content":{"rendered":"\n<figure class=\"wp-block-pullquote\"><blockquote><p>HR Analytics Calculator is in Testing Stages. It May Make Mistakes!<\/p><cite><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">CAUTION!<\/mark><\/strong><\/cite><\/blockquote><\/figure>\n\n\n\n<div id=\"profit-calculator\" style=\"font-family: Arial, sans-serif; max-width: 800px; margin: 20px auto; padding: 20px; box-shadow: 0 0 10px rgba(0,0,0,0.1); border-radius: 8px;\">\n    <style>\n        #profit-calculator {\n            --primary-color: #2c3e50;\n            --accent-color: #3498db;\n            --success-color: #2ecc71;\n            --warning-color: #f1c40f;\n            --danger-color: #e74c3c;\n        }\n        #profit-calculator input[type=\"number\"] {\n            width: 100%;\n            padding: 12px;\n            margin: 8px 0;\n            border: 2px solid #ddd;\n            border-radius: 6px;\n            box-sizing: border-box;\n            transition: border-color 0.3s ease;\n            font-size: 16px;\n        }\n        #profit-calculator input[type=\"number\"]:focus {\n            border-color: var(--accent-color);\n            outline: none;\n        }\n        #profit-calculator button {\n            background-color: var(--accent-color);\n            color: white;\n            padding: 12px 24px;\n            border: none;\n            border-radius: 6px;\n            cursor: pointer;\n            margin-top: 15px;\n            font-size: 16px;\n            transition: transform 0.2s ease, background-color 0.2s ease;\n        }\n        #profit-calculator button:hover {\n            background-color: #2980b9;\n            transform: translateY(-2px);\n        }\n        .result-box {\n            margin-top: 25px;\n            padding: 20px;\n            background-color: #f8f9fa;\n            border-radius: 8px;\n            display: none;\n            animation: slideDown 0.5s ease;\n        }\n        @keyframes slideDown {\n            from { opacity: 0; transform: translateY(-20px); }\n            to { opacity: 1; transform: translateY(0); }\n        }\n        .explanation {\n            margin: 20px 0;\n            padding: 20px;\n            background-color: #e9ecef;\n            border-radius: 8px;\n            position: relative;\n        }\n        .input-group {\n            margin-bottom: 20px;\n            position: relative;\n        }\n        .input-group label {\n            display: block;\n            margin-bottom: 8px;\n            font-weight: bold;\n            color: var(--primary-color);\n        }\n        .tooltip {\n            display: inline-block;\n            margin-left: 5px;\n            cursor: help;\n            color: var(--accent-color);\n            position: relative;\n        }\n        .tooltip:hover::after {\n            content: attr(data-tip);\n            position: absolute;\n            bottom: 100%;\n            left: 50%;\n            transform: translateX(-50%);\n            background-color: var(--primary-color);\n            color: white;\n            padding: 8px 12px;\n            border-radius: 4px;\n            font-size: 14px;\n            white-space: nowrap;\n            z-index: 1;\n            animation: fadeIn 0.3s ease;\n        }\n        @keyframes fadeIn {\n            from { opacity: 0; }\n            to { opacity: 1; }\n        }\n        .benchmark {\n            margin-top: 20px;\n            padding: 15px;\n            border-radius: 6px;\n            background-color: white;\n            box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n        }\n        .industry-comparison {\n            margin-top: 20px;\n            padding: 15px;\n            background-color: white;\n            border-radius: 6px;\n        }\n        .metric-bar {\n            height: 20px;\n            background-color: #eee;\n            border-radius: 10px;\n            margin: 10px 0;\n            overflow: hidden;\n            position: relative;\n        }\n        .metric-fill {\n            height: 100%;\n            width: 0;\n            background-color: var(--accent-color);\n            transition: width 1s ease;\n        }\n        .insights {\n            margin-top: 20px;\n            padding: 15px;\n            background-color: #fff3cd;\n            border-radius: 6px;\n            display: none;\n        }\n        .tab-container {\n            margin-top: 20px;\n        }\n        .tab-buttons {\n            display: flex;\n            gap: 10px;\n            margin-bottom: 15px;\n        }\n        .tab-button {\n            padding: 10px 20px;\n            border: none;\n            background-color: #eee;\n            cursor: pointer;\n            border-radius: 4px;\n            transition: background-color 0.3s ease;\n        }\n        .tab-button.active {\n            background-color: var(--accent-color);\n            color: white;\n        }\n        .tab-content {\n            display: none;\n            padding: 15px;\n            background-color: white;\n            border-radius: 6px;\n            box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n        }\n        .tab-content.active {\n            display: block;\n            animation: fadeIn 0.3s ease;\n        }\n        .history-chart {\n            height: 200px;\n            background-color: white;\n            margin-top: 15px;\n            padding: 10px;\n            border-radius: 6px;\n        }\n    <\/style>\n\n    <h2 style=\"color: var(--primary-color); margin-bottom: 20px;\">Interactive Profit per Employee Calculator<\/h2>\n    \n    <div class=\"explanation\">\n        <h3 style=\"color: var(--primary-color);\">Understanding the Metric<\/h3>\n        <p>The Profit per Employee metric reveals your company's operational efficiency and productivity:<\/p>\n        <p style=\"font-weight: bold; text-align: center; margin: 15px 0; color: var(--accent-color);\">\n            Profit per Employee = Net Profit Per Year \u00f7 Average Number of Employees Throughout the Year\n        <\/p>\n    <\/div>\n\n    <div class=\"input-group\">\n        <label for=\"netProfit\">Net Profit - Per Year ($)<\/label>\n        <input type=\"number\" id=\"netProfit\" placeholder=\"Enter annual net profit\" min=\"0\">\n        <span class=\"tooltip\" data-tip=\"Your total revenue minus all expenses for the year\">\u24d8<\/span>\n    <\/div>\n\n    <div class=\"input-group\">\n        <label for=\"employees\">Average Number of Employees Throughout the Year<\/label>\n        <input type=\"number\" id=\"employees\" placeholder=\"Enter total employees (FTE)\" min=\"1\">\n        <span class=\"tooltip\" data-tip=\"Include full-time employees and FTE for part-time staff\">\u24d8<\/span>\n    <\/div>\n\n    <button onclick=\"calculateProfit()\">Calculate & Analyze<\/button>\n\n    <div id=\"resultBox\" class=\"result-box\">\n        <h3 style=\"color: var(--primary-color); margin-top: 0;\">Analysis Results<\/h3>\n        \n        <div class=\"tab-container\">\n            <div class=\"tab-buttons\">\n                <button class=\"tab-button active\" onclick=\"showTab('overview')\">Overview<\/button>\n                <button class=\"tab-button\" onclick=\"showTab('comparison')\">Industry Comparison<\/button>\n                <button class=\"tab-button\" onclick=\"showTab('insights')\">Insights<\/button>\n            <\/div>\n\n            <div id=\"overview\" class=\"tab-content active\">\n                <h4>Your Metrics<\/h4>\n                <p>Profit per Employee: <span id=\"result\" style=\"font-weight: bold; color: var(--accent-color);\"><\/span><\/p>\n                <div class=\"metric-bar\">\n                    <div id=\"efficiencyBar\" class=\"metric-fill\"><\/div>\n                <\/div>\n                <p id=\"efficiencyText\" style=\"font-style: italic;\"><\/p>\n            <\/div>\n\n            <div id=\"comparison\" class=\"tab-content\">\n                <h4>Industry Benchmarks<\/h4>\n                <div class=\"industry-comparison\">\n                    <p>Technology: $150,000 per employee<\/p>\n                    <div class=\"metric-bar\">\n                        <div class=\"metric-fill\" style=\"width: 100%; background-color: #ddd;\"><\/div>\n                    <\/div>\n                    <p>Financial Services: $100,000 per employee<\/p>\n                    <div class=\"metric-bar\">\n                        <div class=\"metric-fill\" style=\"width: 67%; background-color: #ddd;\"><\/div>\n                    <\/div>\n                    <p>Manufacturing: $50,000 per employee<\/p>\n                    <div class=\"metric-bar\">\n                        <div class=\"metric-fill\" style=\"width: 33%; background-color: #ddd;\"><\/div>\n                    <\/div>\n                    <p>Retail: $30,000 per employee<\/p>\n                    <div class=\"metric-bar\">\n                        <div class=\"metric-fill\" style=\"width: 20%; background-color: #ddd;\"><\/div>\n                    <\/div>\n                    <div id=\"yourComparison\"><\/div>\n                <\/div>\n            <\/div>\n\n            <div id=\"insights\" class=\"tab-content\">\n                <h4>Strategic Insights<\/h4>\n                <div id=\"insightsList\"><\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <script>\n        let calculationHistory = [];\n\n        function showTab(tabId) {\n            \/\/ Hide all tabs and remove active class\n            document.querySelectorAll('.tab-content').forEach(tab => tab.style.display = 'none');\n            document.querySelectorAll('.tab-button').forEach(button => button.classList.remove('active'));\n            \n            \/\/ Show selected tab and add active class\n            document.getElementById(tabId).style.display = 'block';\n            document.querySelector(`button[onclick=\"showTab('${tabId}')\"]`).classList.add('active');\n        }\n\n        function calculateProfit() {\n            const netProfit = parseFloat(document.getElementById('netProfit').value);\n            const employees = parseInt(document.getElementById('employees').value);\n            \n            if (!netProfit || !employees || employees <= 0) {\n                alert('Please enter valid numbers for both fields');\n                return;\n            }\n\n            const profitPerEmployee = netProfit \/ employees;\n            \n            \/\/ Store calculation in history\n            calculationHistory.push({\n                timestamp: new Date(),\n                netProfit: netProfit,\n                employees: employees,\n                profitPerEmployee: profitPerEmployee\n            });\n\n            \/\/ Update UI\n            document.getElementById('resultBox').style.display = 'block';\n            document.getElementById('result').textContent = \n                `$${profitPerEmployee.toLocaleString('en-US', {maximumFractionDigits: 2})}`;\n\n            \/\/ Update efficiency bar\n            const efficiencyPercentage = Math.min((profitPerEmployee \/ 150000) * 100, 100);\n            document.getElementById('efficiencyBar').style.width = `${efficiencyPercentage}%`;\n\n            \/\/ Generate efficiency text\n            let efficiencyText = '';\n            if (profitPerEmployee > 120000) {\n                efficiencyText = 'Outstanding performance! Your profit per employee ratio is exceptional.';\n                document.getElementById('efficiencyBar').style.backgroundColor = '#2ecc71';\n            } else if (profitPerEmployee > 80000) {\n                efficiencyText = 'Great performance! Your profit per employee ratio is above average.';\n                document.getElementById('efficiencyBar').style.backgroundColor = '#3498db';\n            } else if (profitPerEmployee > 40000) {\n                efficiencyText = 'Good performance. Your profit per employee ratio is within normal range.';\n                document.getElementById('efficiencyBar').style.backgroundColor = '#f1c40f';\n            } else {\n                efficiencyText = 'There may be opportunities to improve operational efficiency.';\n                document.getElementById('efficiencyBar').style.backgroundColor = '#e74c3c';\n            }\n            document.getElementById('efficiencyText').textContent = efficiencyText;\n\n            \/\/ Update industry comparison\n            const yourComparison = document.getElementById('yourComparison');\n            yourComparison.innerHTML = `\n                <p>Your Company: $${profitPerEmployee.toLocaleString('en-US', {maximumFractionDigits: 2})} per employee<\/p>\n                <div class=\"metric-bar\">\n                    <div class=\"metric-fill\" style=\"width: ${efficiencyPercentage}%; background-color: var(--accent-color);\"><\/div>\n                <\/div>\n            `;\n\n            \/\/ Generate insights\n            const insights = generateInsights(netProfit, employees, profitPerEmployee);\n            document.getElementById('insightsList').innerHTML = insights;\n        }\n\n        function generateInsights(netProfit, employees, profitPerEmployee) {\n            let insights = '<ul style=\"list-style-type: none; padding: 0;\">';\n            \n            \/\/ Efficiency insight\n            if (profitPerEmployee < 40000) {\n                insights += `\n                    <li style=\"margin-bottom: 15px; padding: 10px; background-color: #ffebee; border-radius: 4px;\">\n                        <strong>Efficiency Opportunity:<\/strong> Consider reviewing operational processes and exploring automation opportunities to increase profit per employee.\n                    <\/li>\n                `;\n            }\n\n            \/\/ Scale insight\n            if (employees < 10) {\n                insights += `\n                    <li style=\"margin-bottom: 15px; padding: 10px; background-color: #e8f5e9; border-radius: 4px;\">\n                        <strong>Growth Potential:<\/strong> Your small team shows good profit generation. Consider strategic hiring to scale operations while maintaining efficiency.\n                    <\/li>\n                `;\n            }\n\n            \/\/ Profit distribution insight\n            const profitDistribution = netProfit \/ employees;\n            if (profitDistribution > 100000) {\n                insights += `\n                    <li style=\"margin-bottom: 15px; padding: 10px; background-color: #e3f2fd; border-radius: 4px;\">\n                        <strong>Strong Performance:<\/strong> Your high profit per employee suggests excellent operational efficiency. Consider documenting and scaling your successful practices.\n                    <\/li>\n                `;\n            }\n\n            insights += '<\/ul>';\n            return insights;\n        }\n    <\/script>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"jobConversionCalc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <div style=\"background: #ffffff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n        <h2 style=\"margin-top: 0; color: #333; text-align: center;\">Job Application Conversion Calculator<\/h2>\n        \n        <div style=\"background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Adjusted Conversion Rate = (Applications \/ Views) \u00d7 100 \u00d7 Market Factor\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Number of Applications:\n                    <\/label>\n                    <input type=\"number\" id=\"applicationCount\" min=\"0\" step=\"1\" placeholder=\"e.g., 75\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                \n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Number of Views:\n                    <\/label>\n                    <input type=\"number\" id=\"viewCount\" min=\"1\" step=\"1\" placeholder=\"e.g., 1500\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n            <\/div>\n\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Job Category:\n                    <\/label>\n                    <select id=\"jobCategory\" style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"entry\">Entry Level<\/option>\n                        <option value=\"mid\">Mid Level<\/option>\n                        <option value=\"senior\">Senior Level<\/option>\n                        <option value=\"specialized\">Specialized Role<\/option>\n                    <\/select>\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Market Conditions:\n                    <\/label>\n                    <select id=\"marketConditions\" style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"very-high\">Very Active Job Market (Low Unemployment)<\/option>\n                        <option value=\"high\">Active Job Market<\/option>\n                        <option value=\"moderate\" selected>Balanced Market<\/option>\n                        <option value=\"low\">Competitive Market<\/option>\n                        <option value=\"very-low\">Highly Competitive Market (High Unemployment)<\/option>\n                    <\/select>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Benchmark Settings -->\n        <div style=\"background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <h4 style=\"margin-top: 0; margin-bottom: 15px; color: #333;\">Customize Expected Conversion Rates (%)<\/h4>\n            <div style=\"display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-size: 0.9em;\">Entry Level:<\/label>\n                    <div style=\"display: flex; gap: 5px;\">\n                        <input type=\"number\" id=\"entryLow\" value=\"3\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                        <span style=\"line-height: 28px;\">-<\/span>\n                        <input type=\"number\" id=\"entryHigh\" value=\"8\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                    <\/div>\n                <\/div>\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-size: 0.9em;\">Mid Level:<\/label>\n                    <div style=\"display: flex; gap: 5px;\">\n                        <input type=\"number\" id=\"midLow\" value=\"2\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                        <span style=\"line-height: 28px;\">-<\/span>\n                        <input type=\"number\" id=\"midHigh\" value=\"6\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                    <\/div>\n                <\/div>\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-size: 0.9em;\">Senior Level:<\/label>\n                    <div style=\"display: flex; gap: 5px;\">\n                        <input type=\"number\" id=\"seniorLow\" value=\"1\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                        <span style=\"line-height: 28px;\">-<\/span>\n                        <input type=\"number\" id=\"seniorHigh\" value=\"4\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                    <\/div>\n                <\/div>\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-size: 0.9em;\">Specialized:<\/label>\n                    <div style=\"display: flex; gap: 5px;\">\n                        <input type=\"number\" id=\"specializedLow\" value=\"1\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                        <span style=\"line-height: 28px;\">-<\/span>\n                        <input type=\"number\" id=\"specializedHigh\" value=\"3\" min=\"0\" max=\"100\" step=\"0.1\" style=\"width: 60px; padding: 4px;\">\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Warning Message -->\n        <div id=\"warningMsg\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\"><\/div>\n\n        <!-- Results Display -->\n        <div id=\"resultsPanel\" style=\"background: #f8f9fa; padding: 15px; border-radius: 6px;\">\n            <h3 style=\"margin-top: 0; color: #333;\">Results<\/h3>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; text-align: center; margin: 20px 0;\">\n                <div>\n                    <div style=\"font-weight: 500;\">Raw Conversion Rate:<\/div>\n                    <div id=\"rawRate\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Market-Adjusted Rate:<\/div>\n                    <div id=\"adjustedRate\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Performance Level:<\/div>\n                    <div id=\"performanceLevel\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n            <\/div>\n            <div id=\"interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    function getBenchmarks() {\n        return {\n            entry: {\n                low: parseFloat(document.getElementById('entryLow').value),\n                high: parseFloat(document.getElementById('entryHigh').value)\n            },\n            mid: {\n                low: parseFloat(document.getElementById('midLow').value),\n                high: parseFloat(document.getElementById('midHigh').value)\n            },\n            senior: {\n                low: parseFloat(document.getElementById('seniorLow').value),\n                high: parseFloat(document.getElementById('seniorHigh').value)\n            },\n            specialized: {\n                low: parseFloat(document.getElementById('specializedLow').value),\n                high: parseFloat(document.getElementById('specializedHigh').value)\n            }\n        };\n    }\n\n    function calculateConversion() {\n        const applications = parseFloat(document.getElementById('applicationCount').value);\n        const views = parseInt(document.getElementById('viewCount').value);\n        const category = document.getElementById('jobCategory').value;\n        const market = document.getElementById('marketConditions').value;\n        \n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.style.display = 'none';\n        \n        if (isNaN(applications) || isNaN(views)) {\n            showWarning('Please enter both number of applications and views');\n            resetResults();\n            return;\n        }\n        \n        if (views <= 0) {\n            showWarning('Number of views must be greater than 0');\n            resetResults();\n            return;\n        }\n        \n        if (applications < 0) {\n            showWarning('Number of applications cannot be negative');\n            resetResults();\n            return;\n        }\n        \n        if (applications > views) {\n            showWarning('Applications cannot exceed number of views');\n            resetResults();\n            return;\n        }\n        \n        const rawRate = (applications \/ views) * 100;\n        const adjustmentFactor = getMarketFactor(market);\n        const adjustedRate = rawRate * adjustmentFactor;\n        \n        document.getElementById('rawRate').textContent = rawRate.toFixed(1) + '%';\n        document.getElementById('adjustedRate').textContent = adjustedRate.toFixed(1) + '%';\n        updateAnalysis(rawRate, adjustedRate, category, market, views);\n    }\n    \n    function getMarketFactor(market) {\n        const factors = {\n            'very-high': 0.7,    \/\/ Very active job market - fewer applications expected\n            'high': 0.85,        \/\/ Active job market\n            'moderate': 1.0,     \/\/ Balanced market\n            'low': 1.15,         \/\/ Competitive market\n            'very-low': 1.3      \/\/ Highly competitive market - more applications expected\n        };\n        return factors[market];\n    }\n    \n    function showWarning(message) {\n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.textContent = message;\n        warningDiv.style.display = 'block';\n        warningDiv.style.background = '#fff3cd';\n        warningDiv.style.border = '1px solid #ffeeba';\n        warningDiv.style.color = '#856404';\n    }\n    \n    function resetResults() {\n        document.getElementById('rawRate').textContent = '-';\n        document.getElementById('adjustedRate').textContent = '-';\n        document.getElementById('performanceLevel').textContent = '-';\n        document.getElementById('interpretation').innerHTML = '';\n    }\n    \n    function getPerformanceLevel(rate, category) {\n        const benchmarks = getBenchmarks();\n        const benchmark = benchmarks[category];\n        \n        if (rate >= benchmark.high) return 'Exceptional';\n        if (rate >= benchmark.low) return 'Good';\n        if (rate >= benchmark.low \/ 2) return 'Fair';\n        return 'Needs Improvement';\n    }\n    \n    function updateAnalysis(rawRate, adjustedRate, category, market, views) {\n        const interpretationDiv = document.getElementById('interpretation');\n        const performanceLevel = getPerformanceLevel(adjustedRate, category);\n        \n        document.getElementById('performanceLevel').textContent = performanceLevel;\n        \n        let interpretation = '';\n        const marketCondition = market.replace('-', ' ').replace('very-', 'very ');\n        \n        switch(performanceLevel) {\n            case 'Exceptional':\n                interpretation = 'Outstanding conversion rate! Your job posting is performing exceptionally well. ';\n                break;\n            case 'Good':\n                interpretation = 'Solid performance within industry standards. Your job posting is effective. ';\n                break;\n            case 'Fair':\n                interpretation = 'Room for improvement. Consider reviewing your job description and requirements. ';\n                break;\n            default:\n                interpretation = 'Consider optimizing your job posting to improve conversion rate. ';\n        }\n        \n        interpretation += `In a ${marketCondition} market, your adjusted conversion rate of ${adjustedRate.toFixed(1)}% `;\n        if (rawRate > adjustedRate) {\n            interpretation += 'has been adjusted down to account for the higher application volume typical in competitive job markets.';\n        } else if (rawRate < adjustedRate) {\n            interpretation += 'has been adjusted up to account for the typically lower application volumes in active job markets.';\n        }\n        \n        if (views < 100) {\n            interpretation += ' Note: Limited sample size - results may not be statistically significant.';\n        }\n        \n        interpretationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #555;\">${interpretation}<\/div>\n        `;\n    }\n\n    const inputs = document.querySelectorAll('#jobConversionCalc input, #jobConversionCalc select');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateConversion);\n    });\n    \n    calculateConversion();\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"candidateSatisfactionCalc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <div style=\"background: #ffffff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n        <h2 style=\"margin-top: 0; color: #333; text-align: center;\">Candidate Satisfaction Score Calculator<\/h2>\n        \n        <!-- Formula Explanation -->\n        <div style=\"background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Score = (Average Satisfaction \/ Maximum Score) \u00d7 100\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #555;\">\n                This calculator helps measure candidate satisfaction as a percentage. Input your data below to calculate your score.\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Total Sum of Ratings:\n                    <\/label>\n                    <input type=\"number\" id=\"totalRatings\" min=\"0\" step=\"1\" placeholder=\"e.g., 180\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                \n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Number of Candidates:\n                    <\/label>\n                    <input type=\"number\" id=\"candidateCount\" min=\"1\" step=\"1\" placeholder=\"e.g., 45\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n            <\/div>\n\n            <div style=\"margin-top: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Maximum Possible Score:\n                <\/label>\n                <select id=\"maxScore\" style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                    <option value=\"5\">5-point scale<\/option>\n                    <option value=\"10\">10-point scale<\/option>\n                <\/select>\n            <\/div>\n        <\/div>\n\n        <!-- Inline Warning -->\n        <div id=\"warningMsg\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\"><\/div>\n\n        <!-- Results Display -->\n        <div id=\"resultsPanel\" style=\"background: #f8f9fa; padding: 15px; border-radius: 6px;\">\n            <h3 style=\"margin-top: 0; color: #333;\">Results<\/h3>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; text-align: center; margin: 20px 0;\">\n                <div>\n                    <div style=\"font-weight: 500;\">Average Rating:<\/div>\n                    <div id=\"averageScore\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Satisfaction Score:<\/div>\n                    <div id=\"satisfactionScore\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Performance Level:<\/div>\n                    <div id=\"performanceLevel\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n            <\/div>\n            <div id=\"interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;\"><\/div>\n        <\/div>\n\n        <!-- Score Guide -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; border: 1px solid #ddd;\">\n            <h4 style=\"margin-top: 0; color: #333;\">Score Interpretation Guide<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px; color: #555;\">\n                <li style=\"margin-bottom: 8px;\">90-100%: Exceptional candidate experience<\/li>\n                <li style=\"margin-bottom: 8px;\">80-89%: Strong candidate satisfaction<\/li>\n                <li style=\"margin-bottom: 8px;\">70-79%: Good performance<\/li>\n                <li style=\"margin-bottom: 8px;\">60-69%: Needs improvement<\/li>\n                <li>Below 60%: Requires immediate attention<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    function calculateSatisfaction() {\n        const totalRatings = parseFloat(document.getElementById('totalRatings').value);\n        const candidateCount = parseInt(document.getElementById('candidateCount').value);\n        const maxScore = parseInt(document.getElementById('maxScore').value);\n        \n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.style.display = 'none';\n        \n        \/\/ Validation\n        if (isNaN(totalRatings) || isNaN(candidateCount)) {\n            showWarning('Please enter both total ratings and number of candidates');\n            resetResults();\n            return;\n        }\n        \n        if (candidateCount <= 0) {\n            showWarning('Number of candidates must be greater than 0');\n            resetResults();\n            return;\n        }\n        \n        if (totalRatings < 0) {\n            showWarning('Total ratings cannot be negative');\n            resetResults();\n            return;\n        }\n        \n        if (totalRatings > (maxScore * candidateCount)) {\n            showWarning('Total ratings cannot exceed maximum possible sum');\n            resetResults();\n            return;\n        }\n        \n        \/\/ Calculate scores\n        const averageScore = totalRatings \/ candidateCount;\n        const satisfactionPercent = (averageScore \/ maxScore) * 100;\n        \n        \/\/ Update display\n        document.getElementById('averageScore').textContent = averageScore.toFixed(2);\n        document.getElementById('satisfactionScore').textContent = satisfactionPercent.toFixed(1) + '%';\n        updateAnalysis(satisfactionPercent, candidateCount);\n    }\n    \n    function showWarning(message) {\n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.textContent = message;\n        warningDiv.style.display = 'block';\n        warningDiv.style.background = '#fff3cd';\n        warningDiv.style.border = '1px solid #ffeeba';\n        warningDiv.style.color = '#856404';\n    }\n    \n    function resetResults() {\n        document.getElementById('averageScore').textContent = '-';\n        document.getElementById('satisfactionScore').textContent = '-';\n        document.getElementById('performanceLevel').textContent = '-';\n        document.getElementById('interpretation').innerHTML = '';\n    }\n    \n    function getPerformanceLevel(score) {\n        if (score >= 90) return 'Exceptional';\n        if (score >= 80) return 'Strong';\n        if (score >= 70) return 'Good';\n        if (score >= 60) return 'Needs Work';\n        return 'Critical';\n    }\n    \n    function updateAnalysis(score, candidateCount) {\n        const interpretationDiv = document.getElementById('interpretation');\n        const performanceLevel = getPerformanceLevel(score);\n        \n        document.getElementById('performanceLevel').textContent = performanceLevel;\n        \n        let interpretation = '';\n        \n        switch(performanceLevel) {\n            case 'Exceptional':\n                interpretation = 'Outstanding candidate satisfaction! Your recruitment process is highly effective.';\n                break;\n            case 'Strong':\n                interpretation = 'Very good candidate satisfaction levels. Minor improvements could push you to exceptional.';\n                break;\n            case 'Good':\n                interpretation = 'Satisfactory performance with room for improvement in the candidate experience.';\n                break;\n            case 'Needs Work':\n                interpretation = 'Consider reviewing your recruitment process to identify areas for enhancement.';\n                break;\n            default:\n                interpretation = 'Immediate attention required to improve candidate experience.';\n        }\n        \n        if (candidateCount < 30) {\n            interpretation += ' Note: Consider collecting more responses for more reliable results.';\n        }\n        \n        interpretationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #555;\">${interpretation}<\/div>\n        `;\n    }\n\n    \/\/ Add event listeners\n    const inputs = document.querySelectorAll('#candidateSatisfactionCalc input, #candidateSatisfactionCalc select');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateSatisfaction);\n    });\n    \n    \/\/ Initial calculation\n    calculateSatisfaction();\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"brandStrengthCalc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <div style=\"background: #ffffff; border: 1px solid #ddd; border-radius: 8px; padding: 20px;\">\n        <h2 style=\"margin-top: 0; color: #333; text-align: center;\">Employer Brand Strength Calculator<\/h2>\n        \n        <!-- Formula Explanation -->\n        <div style=\"background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Brand Strength = (Glassdoor + Indeed + LinkedIn) \u00f7 Number of Valid Ratings\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #555;\">\n                This calculator computes your employer brand strength by averaging ratings from major platforms. Leave fields blank if ratings are unavailable.\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Glassdoor Rating:\n                    <\/label>\n                    <input type=\"number\" id=\"glassdoorRating\" min=\"1\" max=\"5\" step=\"0.1\" placeholder=\"1.0 - 5.0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                \n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Indeed Rating:\n                    <\/label>\n                    <input type=\"number\" id=\"indeedRating\" min=\"1\" max=\"5\" step=\"0.1\" placeholder=\"1.0 - 5.0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        LinkedIn Score:\n                    <\/label>\n                    <input type=\"number\" id=\"linkedinScore\" min=\"1\" max=\"5\" step=\"0.1\" placeholder=\"1.0 - 5.0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Inline Warning -->\n        <div id=\"warningMsg\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\"><\/div>\n\n        <!-- Results Display -->\n        <div id=\"resultsPanel\" style=\"background: #f8f9fa; padding: 15px; border-radius: 6px;\">\n            <h3 style=\"margin-top: 0; color: #333;\">Results<\/h3>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px; text-align: center; margin: 20px 0;\">\n                <div>\n                    <div style=\"font-weight: 500;\">Brand Strength Score:<\/div>\n                    <div id=\"brandScore\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Rating Level:<\/div>\n                    <div id=\"ratingLevel\" style=\"font-size: 1.5em; font-weight: bold;\">-<\/div>\n                <\/div>\n            <\/div>\n            <div id=\"interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;\"><\/div>\n            <div id=\"recommendation\" style=\"margin-top: 15px; color: #555;\"><\/div>\n        <\/div>\n\n        <!-- Rating Guide -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; border: 1px solid #ddd;\">\n            <h4 style=\"margin-top: 0; color: #333;\">Rating Scale Guide<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px; color: #555;\">\n                <li style=\"margin-bottom: 8px;\">4.5 - 5.0: Exceptional employer brand<\/li>\n                <li style=\"margin-bottom: 8px;\">4.0 - 4.4: Strong employer brand<\/li>\n                <li style=\"margin-bottom: 8px;\">3.5 - 3.9: Good employer brand<\/li>\n                <li style=\"margin-bottom: 8px;\">3.0 - 3.4: Average employer brand<\/li>\n                <li>Below 3.0: Needs improvement<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    function calculateBrandStrength() {\n        const glassdoor = parseFloat(document.getElementById('glassdoorRating').value);\n        const indeed = parseFloat(document.getElementById('indeedRating').value);\n        const linkedin = parseFloat(document.getElementById('linkedinScore').value);\n        \n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.style.display = 'none';\n        \n        \/\/ Validation\n        const ratings = [glassdoor, indeed, linkedin].filter(r => !isNaN(r));\n        if (ratings.length === 0) {\n            showWarning('Please enter at least one valid rating');\n            resetResults();\n            return;\n        }\n        \n        if (ratings.some(r => r < 1 || r > 5)) {\n            showWarning('All ratings must be between 1.0 and 5.0');\n            resetResults();\n            return;\n        }\n        \n        \/\/ Calculate average\n        const average = ratings.reduce((a, b) => a + b, 0) \/ ratings.length;\n        const formattedScore = average.toFixed(2);\n        \n        \/\/ Update display\n        document.getElementById('brandScore').textContent = formattedScore;\n        updateAnalysis(average, ratings.length);\n    }\n    \n    function showWarning(message) {\n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.textContent = message;\n        warningDiv.style.display = 'block';\n        warningDiv.style.background = '#fff3cd';\n        warningDiv.style.border = '1px solid #ffeeba';\n        warningDiv.style.color = '#856404';\n    }\n    \n    function resetResults() {\n        document.getElementById('brandScore').textContent = '-';\n        document.getElementById('ratingLevel').textContent = '-';\n        document.getElementById('interpretation').innerHTML = '';\n        document.getElementById('recommendation').innerHTML = '';\n    }\n    \n    function getRatingLevel(score) {\n        if (score >= 4.5) return 'Exceptional';\n        if (score >= 4.0) return 'Strong';\n        if (score >= 3.5) return 'Good';\n        if (score >= 3.0) return 'Average';\n        return 'Needs Improvement';\n    }\n    \n    function updateAnalysis(score, ratingCount) {\n        const interpretationDiv = document.getElementById('interpretation');\n        const recommendationDiv = document.getElementById('recommendation');\n        const ratingLevel = getRatingLevel(score);\n        \n        document.getElementById('ratingLevel').textContent = ratingLevel;\n        \n        let interpretation, recommendation;\n        \n        switch(ratingLevel) {\n            case 'Exceptional':\n                interpretation = 'Your employer brand is outstanding! You\\'re among the top-rated employers.';\n                recommendation = 'Focus on maintaining excellence and sharing your best practices.';\n                break;\n            case 'Strong':\n                interpretation = 'You have a very positive employer brand that attracts talent.';\n                recommendation = 'Identify specific areas for improvement to reach exceptional status.';\n                break;\n            case 'Good':\n                interpretation = 'Your employer brand is above average with room for growth.';\n                recommendation = 'Develop targeted initiatives to enhance employee experience and satisfaction.';\n                break;\n            case 'Average':\n                interpretation = 'Your employer brand meets basic expectations but needs strengthening.';\n                recommendation = 'Create an action plan to address key areas of employee feedback.';\n                break;\n            default:\n                interpretation = 'Your employer brand requires significant attention.';\n                recommendation = 'Consider a comprehensive employer brand strategy review.';\n        }\n        \n        if (ratingCount < 3) {\n            recommendation += ' Consider collecting more ratings to get a more complete picture.';\n        }\n        \n        interpretationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #555;\">${interpretation}<\/div>\n        `;\n        \n        recommendationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Recommendations:<\/div>\n            <div>${recommendation}<\/div>\n        `;\n    }\n\n    \/\/ Add event listeners\n    const inputs = document.querySelectorAll('#brandStrengthCalc input');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateBrandStrength);\n    });\n    \n    \/\/ Initial calculation\n    calculateBrandStrength();\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"readinessCalc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <div style=\"background: #ffffff; border: 1px solid #ddd; border-radius: 8px; padding: 20px;\">\n        <h2 style=\"margin-top: 0; color: #333; text-align: center;\">Readiness Assessment Calculator<\/h2>\n        \n        <!-- Formula Explanation -->\n        <div style=\"background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Readiness Ratio = (Assessment Score \u00f7 Maximum Possible Score) \u00d7 100%\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #555;\">\n                This metric evaluates your readiness level by comparing your current assessment score against the maximum possible score, expressed as a percentage.\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Current Score:\n                    <\/label>\n                    <input type=\"number\" id=\"currentScore\" min=\"0\" value=\"0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                \n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Maximum Score:\n                    <\/label>\n                    <input type=\"number\" id=\"maxScore\" min=\"0\" value=\"0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Assessment Type:\n                    <\/label>\n                    <select id=\"assessmentType\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"basic\">Basic Assessment<\/option>\n                        <option value=\"standard\">Standard Assessment<\/option>\n                        <option value=\"comprehensive\">Comprehensive Assessment<\/option>\n                    <\/select>\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Organization Size:\n                    <\/label>\n                    <select id=\"orgSize\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"small\">Small (\u226450 employees)<\/option>\n                        <option value=\"medium\">Medium (51-250 employees)<\/option>\n                        <option value=\"large\">Large (>250 employees)<\/option>\n                    <\/select>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Inline Warning -->\n        <div id=\"warningMsg\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\"><\/div>\n\n        <!-- Results Display -->\n        <div id=\"resultsPanel\" style=\"background: #f8f9fa; padding: 15px; border-radius: 6px;\">\n            <h3 style=\"margin-top: 0; color: #333;\">Results<\/h3>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; text-align: center; margin: 20px 0;\">\n                <div>\n                    <div style=\"font-weight: 500;\">Readiness Ratio:<\/div>\n                    <div id=\"readinessRatio\" style=\"font-size: 1.5em; font-weight: bold;\">0%<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Points Gap:<\/div>\n                    <div id=\"pointsGap\" style=\"font-size: 1.5em; font-weight: bold;\">0<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Target Gap:<\/div>\n                    <div id=\"targetGap\" style=\"font-size: 1.5em; font-weight: bold;\">0%<\/div>\n                <\/div>\n            <\/div>\n            <div id=\"interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;\"><\/div>\n            <div id=\"recommendation\" style=\"margin-top: 15px; color: #555;\"><\/div>\n        <\/div>\n\n        <!-- Assessment Guide -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; border: 1px solid #ddd;\">\n            <h4 style=\"margin-top: 0; color: #333;\">Assessment Components<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px; color: #555;\">\n                <li style=\"margin-bottom: 8px;\">Process maturity and documentation<\/li>\n                <li style=\"margin-bottom: 8px;\">Resource availability and allocation<\/li>\n                <li style=\"margin-bottom: 8px;\">Stakeholder engagement levels<\/li>\n                <li>Risk management capabilities<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    function calculateReadiness() {\n        const current = parseInt(document.getElementById('currentScore').value) || 0;\n        const max = parseInt(document.getElementById('maxScore').value) || 0;\n        const type = document.getElementById('assessmentType').value;\n        const size = document.getElementById('orgSize').value;\n        \n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.style.display = 'none';\n        \n        \/\/ Validation\n        if (current > max) {\n            showWarning('Current score cannot exceed maximum score');\n            return;\n        }\n        \n        if (max === 0) {\n            showWarning('Maximum score cannot be zero');\n            return;\n        }\n        \n        \/\/ Calculate readiness ratio\n        const ratio = (current \/ max) * 100;\n        const formattedRatio = ratio.toFixed(1);\n        const pointsGap = max - current;\n        \n        \/\/ Calculate target based on assessment type and organization size\n        const target = getTargetRatio(type, size);\n        const gap = Math.max(0, target - ratio).toFixed(1);\n        \n        \/\/ Update display\n        document.getElementById('readinessRatio').textContent = `${formattedRatio}%`;\n        document.getElementById('pointsGap').textContent = pointsGap;\n        document.getElementById('targetGap').textContent = `${gap}%`;\n        \n        \/\/ Generate analysis\n        updateAnalysis(ratio, target, type, size);\n    }\n    \n    function showWarning(message) {\n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.textContent = message;\n        warningDiv.style.display = 'block';\n        warningDiv.style.background = '#fff3cd';\n        warningDiv.style.border = '1px solid #ffeeba';\n        warningDiv.style.color = '#856404';\n    }\n    \n    function getTargetRatio(type, size) {\n        const baseTargets = {\n            basic: 85,\n            standard: 80,\n            comprehensive: 75\n        };\n        \n        const sizeModifiers = {\n            small: 1.05,\n            medium: 1.0,\n            large: 0.95\n        };\n        \n        return baseTargets[type] * sizeModifiers[size];\n    }\n    \n    function updateAnalysis(ratio, target, type, size) {\n        const interpretationDiv = document.getElementById('interpretation');\n        const recommendationDiv = document.getElementById('recommendation');\n        \n        let status, recommendation;\n        \n        if (ratio >= target) {\n            status = 'Excellent readiness level! Your organization exceeds the target for your assessment type and size category.';\n            recommendation = 'Focus on maintaining current standards and consider moving to a more comprehensive assessment type.';\n        } else if (ratio >= target * 0.9) {\n            status = 'Good readiness level, very close to target. Minor improvements could help reach optimal readiness.';\n            recommendation = 'Review specific gaps and implement targeted improvements in those areas.';\n        } else if (ratio >= target * 0.7) {\n            status = 'Moderate readiness level. Significant improvement opportunities exist.';\n            recommendation = getDetailedRecommendation(type, size);\n        } else {\n            status = 'Readiness level needs attention. Current ratio is significantly below target.';\n            recommendation = getDetailedRecommendation(type, size) + ' Consider external consultation or additional resources.';\n        }\n        \n        interpretationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #555;\">${status}<\/div>\n        `;\n        \n        recommendationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Recommendations:<\/div>\n            <div>${recommendation}<\/div>\n        `;\n    }\n    \n    function getDetailedRecommendation(type, size) {\n        const recommendations = {\n            basic: 'Focus on establishing core processes and documentation.',\n            standard: 'Enhance resource allocation and stakeholder engagement.',\n            comprehensive: 'Implement advanced risk management and maturity frameworks.'\n        };\n        \n        const sizeAdditions = {\n            small: ' Consider implementing basic process documentation.',\n            medium: ' Establish a dedicated readiness assessment team.',\n            large: ' Develop enterprise-wide readiness frameworks.'\n        };\n        \n        return recommendations[type] + sizeAdditions[size];\n    }\n\n    \/\/ Add event listeners\n    const inputs = document.querySelectorAll('#readinessCalc input, #readinessCalc select');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateReadiness);\n        input.addEventListener('change', calculateReadiness);\n    });\n    \n    \/\/ Initial calculation\n    calculateReadiness();\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"changeSuccessCalc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <div style=\"background: #ffffff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n        <h2 style=\"margin-top: 0; color: #333; text-align: center;\">Change Success Rate Calculator<\/h2>\n        \n        <!-- Formula Explanation -->\n        <div style=\"background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Success Rate = (Number of Successful Changes \u00f7 Total Changes Implemented) \u00d7 100%\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #555;\">\n                This metric measures the percentage of changes that were successfully implemented without issues, rollbacks, or incomplete implementations.\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Successful Changes:\n                    <\/label>\n                    <input type=\"number\" id=\"successfulChanges\" min=\"0\" value=\"0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                \n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Total Changes:\n                    <\/label>\n                    <input type=\"number\" id=\"totalChanges\" min=\"0\" value=\"0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Project Scale:\n                    <\/label>\n                    <select id=\"projectScale\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"small\">Small (\u226410 changes)<\/option>\n                        <option value=\"medium\">Medium (11-50 changes)<\/option>\n                        <option value=\"large\">Large (>50 changes)<\/option>\n                    <\/select>\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Change Complexity:\n                    <\/label>\n                    <select id=\"changeComplexity\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"low\">Low Impact<\/option>\n                        <option value=\"medium\">Medium Impact<\/option>\n                        <option value=\"high\">High Impact<\/option>\n                    <\/select>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Inline Warning -->\n        <div id=\"warningMsg\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\"><\/div>\n\n        <!-- Results Display -->\n        <div id=\"resultsPanel\" style=\"background: #f8f9fa; padding: 15px; border-radius: 6px;\">\n            <h3 style=\"margin-top: 0; color: #333;\">Results<\/h3>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; text-align: center; margin: 20px 0;\">\n                <div>\n                    <div style=\"font-weight: 500;\">Success Rate:<\/div>\n                    <div id=\"successRate\" style=\"font-size: 1.5em; font-weight: bold;\">0%<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Failed Changes:<\/div>\n                    <div id=\"failedChanges\" style=\"font-size: 1.5em; font-weight: bold;\">0<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Target Gap:<\/div>\n                    <div id=\"targetGap\" style=\"font-size: 1.5em; font-weight: bold;\">80%<\/div>\n                <\/div>\n            <\/div>\n            <div id=\"interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;\"><\/div>\n            <div id=\"recommendation\" style=\"margin-top: 15px; color: #555;\"><\/div>\n        <\/div>\n\n        <!-- Best Practices Box -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; border: 1px solid #ddd;\">\n            <h4 style=\"margin-top: 0; color: #333;\">What Defines a Successful Change?<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px; color: #555;\">\n                <li style=\"margin-bottom: 8px;\">Complete implementation without rollbacks<\/li>\n                <li style=\"margin-bottom: 8px;\">No critical issues post-implementation<\/li>\n                <li style=\"margin-bottom: 8px;\">Meets all defined success criteria<\/li>\n                <li>Achieves intended business outcomes<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    function calculateSuccessRate() {\n        const successful = parseInt(document.getElementById('successfulChanges').value) || 0;\n        const total = parseInt(document.getElementById('totalChanges').value) || 0;\n        const scale = document.getElementById('projectScale').value;\n        const complexity = document.getElementById('changeComplexity').value;\n        \n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.style.display = 'none';\n        \n        \/\/ Validation\n        if (successful > total) {\n            showWarning('Number of successful changes cannot exceed total changes');\n            return;\n        }\n        \n        if (total === 0) {\n            showWarning('Total changes cannot be zero');\n            return;\n        }\n        \n        \/\/ Calculate success rate\n        const rate = (successful \/ total) * 100;\n        const formattedRate = rate.toFixed(1);\n        const failed = total - successful;\n        \n        \/\/ Calculate target based on complexity and scale\n        const target = getTargetRate(scale, complexity);\n        const gap = Math.max(0, target - rate).toFixed(1);\n        \n        \/\/ Update display\n        document.getElementById('successRate').textContent = `${formattedRate}%`;\n        document.getElementById('failedChanges').textContent = failed;\n        document.getElementById('targetGap').textContent = `${gap}%`;\n        \n        \/\/ Generate analysis\n        updateAnalysis(rate, target, complexity, scale);\n    }\n    \n    function showWarning(message) {\n        const warningDiv = document.getElementById('warningMsg');\n        warningDiv.textContent = message;\n        warningDiv.style.display = 'block';\n        warningDiv.style.background = '#fff3cd';\n        warningDiv.style.border = '1px solid #ffeeba';\n        warningDiv.style.color = '#856404';\n    }\n    \n    function getTargetRate(scale, complexity) {\n        const baseTargets = {\n            low: 90,\n            medium: 85,\n            high: 80\n        };\n        \n        const scaleModifiers = {\n            small: 1.05,\n            medium: 1.0,\n            large: 0.95\n        };\n        \n        return baseTargets[complexity] * scaleModifiers[scale];\n    }\n    \n    function updateAnalysis(rate, target, complexity, scale) {\n        const interpretationDiv = document.getElementById('interpretation');\n        const recommendationDiv = document.getElementById('recommendation');\n        \n        let status, recommendation;\n        \n        if (rate >= target) {\n            status = 'Excellent performance! Your change success rate exceeds the target for your project scale and complexity level.';\n            recommendation = 'Document successful practices and maintain your current change management approach.';\n        } else if (rate >= target * 0.9) {\n            status = 'Good performance, very close to target. Minor improvements could help reach the optimal success rate.';\n            recommendation = 'Review failed changes for patterns and implement targeted improvements.';\n        } else if (rate >= target * 0.7) {\n            status = 'Moderate performance. There\\'s significant room for improvement in change success rate.';\n            recommendation = getDetailedRecommendation(complexity, scale);\n        } else {\n            status = 'Performance needs attention. Current success rate is significantly below target.';\n            recommendation = getDetailedRecommendation(complexity, scale) + ' Consider bringing in additional expertise or resources.';\n        }\n        \n        interpretationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #555;\">${status}<\/div>\n        `;\n        \n        recommendationDiv.innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Recommendations:<\/div>\n            <div>${recommendation}<\/div>\n        `;\n    }\n    \n    function getDetailedRecommendation(complexity, scale) {\n        const recommendations = {\n            low: 'Focus on standardizing change processes and improving documentation.',\n            medium: 'Enhance testing procedures and strengthen stakeholder communication.',\n            high: 'Implement more rigorous risk assessment and expand contingency planning.'\n        };\n        \n        const scaleAdditions = {\n            small: ' Consider implementing a peer review system.',\n            medium: ' Establish a dedicated change advisory board.',\n            large: ' Develop a comprehensive change management framework.'\n        };\n        \n        return recommendations[complexity] + scaleAdditions[scale];\n    }\n\n    \/\/ Add event listeners\n    const inputs = document.querySelectorAll('#changeSuccessCalc input, #changeSuccessCalc select');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateSuccessRate);\n        input.addEventListener('change', calculateSuccessRate);\n    });\n    \n    \/\/ Initial calculation\n    calculateSuccessRate();\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"carCalc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <div style=\"background: #ffffff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n        <h2 style=\"margin-top: 0; color: #333; text-align: center;\">Change Adoption Rate Calculator<\/h2>\n        \n        <!-- Formula Explanation -->\n        <div style=\"background: #f8f9fa; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Change Adoption Rate = (Number of Employees Adopting Change \u00f7 Number of Affected Employees) \u00d7 100%\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #555;\">\n                This rate measures the percentage of employees who have successfully adopted organizational changes.\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Employees Adopting Change:\n                    <\/label>\n                    <input type=\"number\" id=\"adoptingEmp\" min=\"0\" value=\"0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                \n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Total Affected Employees:\n                    <\/label>\n                    <input type=\"number\" id=\"totalEmp\" min=\"0\" value=\"0\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Organization Size:\n                    <\/label>\n                    <select id=\"orgSize\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"small\">Small (\u226450 employees)<\/option>\n                        <option value=\"medium\">Medium (51-250 employees)<\/option>\n                        <option value=\"large\">Large (>250 employees)<\/option>\n                    <\/select>\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Change Type:\n                    <\/label>\n                    <select id=\"changeType\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"process\">Process Change<\/option>\n                        <option value=\"technology\">Technology Implementation<\/option>\n                        <option value=\"culture\">Cultural Change<\/option>\n                        <option value=\"structure\">Organizational Restructure<\/option>\n                    <\/select>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Inline Warning -->\n        <div id=\"warning\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\"><\/div>\n\n        <!-- Results Display -->\n        <div id=\"results\" style=\"background: #f8f9fa; padding: 15px; border-radius: 6px;\">\n            <h3 style=\"margin-top: 0; color: #333;\">Results<\/h3>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px; text-align: center; margin: 20px 0;\">\n                <div>\n                    <div style=\"font-weight: 500;\">Adoption Rate:<\/div>\n                    <div id=\"adoptionRate\" style=\"font-size: 1.5em; font-weight: bold;\">0%<\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">Gap to Target:<\/div>\n                    <div id=\"adoptionGap\" style=\"font-size: 1.5em; font-weight: bold;\">100%<\/div>\n                <\/div>\n            <\/div>\n            <div id=\"interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd;\"><\/div>\n            <div id=\"recommendation\" style=\"margin-top: 15px; color: #555;\"><\/div>\n        <\/div>\n\n        <!-- Information Box -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; border: 1px solid #ddd;\">\n            <h4 style=\"margin-top: 0; color: #333;\">What Constitutes Adoption?<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px; color: #555;\">\n                <li style=\"margin-bottom: 8px;\">Consistent use of new processes\/tools<\/li>\n                <li style=\"margin-bottom: 8px;\">Completion of required training<\/li>\n                <li style=\"margin-bottom: 8px;\">Demonstrated competency<\/li>\n                <li>Active participation in change initiatives<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    function calculateAdoptionRate() {\n        const adopting = parseInt(document.getElementById('adoptingEmp').value) || 0;\n        const total = parseInt(document.getElementById('totalEmp').value) || 0;\n        const orgSize = document.getElementById('orgSize').value;\n        const changeType = document.getElementById('changeType').value;\n        \n        const warningDiv = document.getElementById('warning');\n        warningDiv.style.display = 'none';\n        \n        \/\/ Validation\n        if (adopting > total) {\n            showWarning('Number of adopting employees cannot exceed total affected employees');\n            return;\n        }\n        \n        if (total === 0) {\n            showWarning('Total affected employees cannot be zero');\n            return;\n        }\n        \n        \/\/ Calculate adoption rate\n        const rate = (adopting \/ total) * 100;\n        const formattedRate = rate.toFixed(1);\n        \n        \/\/ Calculate gap to target\n        const target = getTargetRate(orgSize, changeType);\n        const gap = Math.max(0, target - rate).toFixed(1);\n        \n        \/\/ Display results\n        document.getElementById('adoptionRate').textContent = `${formattedRate}%`;\n        document.getElementById('adoptionGap').textContent = `${gap}%`;\n        \n        \/\/ Generate interpretation\n        const interpretation = getInterpretation(rate, target, changeType);\n        const recommendation = getRecommendation(rate, target, changeType);\n        \n        document.getElementById('interpretation').innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #555;\">${interpretation}<\/div>\n        `;\n        \n        document.getElementById('recommendation').innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Recommendation:<\/div>\n            <div>${recommendation}<\/div>\n        `;\n    }\n    \n    function showWarning(message) {\n        const warningDiv = document.getElementById('warning');\n        warningDiv.textContent = message;\n        warningDiv.style.display = 'block';\n        warningDiv.style.background = '#fff3cd';\n        warningDiv.style.border = '1px solid #ffeeba';\n        warningDiv.style.color = '#856404';\n    }\n    \n    function getTargetRate(orgSize, changeType) {\n        const baseTarget = {\n            process: 85,\n            technology: 80,\n            culture: 70,\n            structure: 75\n        };\n        \n        const sizeMultiplier = {\n            small: 1.1,\n            medium: 1.0,\n            large: 0.9\n        };\n        \n        return baseTarget[changeType] * sizeMultiplier[orgSize];\n    }\n    \n    function getInterpretation(rate, target, changeType) {\n        if (rate >= target) {\n            return `Excellent adoption rate exceeding the target for ${changeType} changes. The change initiative appears to be successful.`;\n        } else if (rate >= target * 0.8) {\n            return `Good progress toward adoption target. Continue supporting employees through the change process.`;\n        } else if (rate >= target * 0.6) {\n            return `Moderate adoption rate. Additional support and engagement may be needed.`;\n        } else {\n            return `Low adoption rate. Consider reviewing and adjusting the change management strategy.`;\n        }\n    }\n    \n    function getRecommendation(rate, target, changeType) {\n        let recommendation = '';\n        \n        if (rate < target * 0.6) {\n            switch(changeType) {\n                case 'process':\n                    recommendation = 'Consider simplifying processes and providing additional training support.';\n                    break;\n                case 'technology':\n                    recommendation = 'Focus on user training and technical support accessibility.';\n                    break;\n                case 'culture':\n                    recommendation = 'Strengthen leadership communication and employee engagement initiatives.';\n                    break;\n                case 'structure':\n                    recommendation = 'Review transition plan and increase change management support.';\n                    break;\n            }\n        } else if (rate < target * 0.8) {\n            recommendation = 'Identify and address specific adoption barriers through employee feedback.';\n        } else if (rate < target) {\n            recommendation = 'Fine-tune support mechanisms and celebrate adoption progress.';\n        } else {\n            recommendation = 'Document successful strategies and maintain support systems.';\n        }\n        \n        return recommendation;\n    }\n\n    \/\/ Add event listeners\n    const inputs = document.querySelectorAll('#carCalc input, #carCalc select');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateAdoptionRate);\n        input.addEventListener('change', calculateAdoptionRate);\n    });\n    \n    \/\/ Initial calculation\n    calculateAdoptionRate();\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Average Resolution Time Calculator -->\n<div id=\"resolutionCalc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\">\n    <div style=\"background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px;\">\n        <h2 style=\"margin-top: 0; color: #2c3338;\">Average Resolution Time Calculator<\/h2>\n        \n        <!-- Formula Explanation -->\n        <div style=\"background: #e9ecef; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Average Resolution Time = Total Resolution Days \u00f7 Number of Issues\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #495057;\">\n                This metric measures the average time taken to resolve issues\/tickets.\n                A lower average indicates faster resolution times.\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Total Resolution Days:\n                    <\/label>\n                    <input type=\"number\" id=\"totalDays\" min=\"0\" value=\"0\" step=\"0.5\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                    <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                        Sum of all resolution days\n                    <\/div>\n                <\/div>\n                \n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Number of Issues:\n                    <\/label>\n                    <input type=\"number\" id=\"numIssues\" min=\"1\" value=\"1\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                    <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                        Total number of issues resolved\n                    <\/div>\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Team Size:\n                    <\/label>\n                    <select id=\"teamSize\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"small\">Small (1-5 members)<\/option>\n                        <option value=\"medium\">Medium (6-15 members)<\/option>\n                        <option value=\"large\">Large (>15 members)<\/option>\n                    <\/select>\n                <\/div>\n\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Issue Complexity:\n                    <\/label>\n                    <select id=\"complexity\" \n                            style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                        <option value=\"low\">Low<\/option>\n                        <option value=\"medium\">Medium<\/option>\n                        <option value=\"high\">High<\/option>\n                    <\/select>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Warning Display -->\n        <div id=\"warning\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\">\n        <\/div>\n\n        <!-- Results Display -->\n        <div id=\"results\" style=\"background: #e9ecef; padding: 15px; border-radius: 6px; margin-top: 20px;\">\n            <h3 style=\"margin-top: 0; color: #2c3338;\">Results<\/h3>\n            <div style=\"text-align: center; margin: 20px 0;\">\n                <div style=\"font-weight: 500;\">Average Resolution Time:<\/div>\n                <div id=\"avgResolutionTime\" style=\"font-size: 1.5em; color: #0056b3; font-weight: bold;\">0.00 days<\/div>\n            <\/div>\n            <div id=\"interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #dee2e6;\">\n            <\/div>\n            <div id=\"benchmark\" style=\"margin-top: 15px; font-size: 0.9em; color: #495057;\">\n            <\/div>\n        <\/div>\n\n        <!-- Daily Resolution Calculator -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n            <h4 style=\"margin-top: 0; color: #2c3338;\">Single Issue Resolution Calculator:<\/h4>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px;\">\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px;\">Start Date:<\/label>\n                    <input type=\"date\" id=\"startDate\" \n                           style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                <div>\n                    <label style=\"display: block; margin-bottom: 5px;\">End Date:<\/label>\n                    <input type=\"date\" id=\"endDate\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n            <\/div>\n            <div id=\"singleIssueResult\" style=\"margin-top: 10px; font-weight: 500;\"><\/div>\n        <\/div>\n\n        <!-- Information Box -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n            <h4 style=\"margin-top: 0; color: #2c3338;\">Understanding Resolution Time:<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px;\">\n                <li style=\"margin-bottom: 8px;\">Measures average days to resolve an issue<\/li>\n                <li style=\"margin-bottom: 8px;\">Accounts for team size and complexity<\/li>\n                <li style=\"margin-bottom: 8px;\">Lower averages indicate better performance<\/li>\n                <li>Use date calculator for single issue resolution time<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    function calculateAverage() {\n        const totalDays = parseFloat(document.getElementById('totalDays').value) || 0;\n        const numIssues = parseFloat(document.getElementById('numIssues').value) || 0;\n        const teamSize = document.getElementById('teamSize').value;\n        const complexity = document.getElementById('complexity').value;\n        \n        const warningDiv = document.getElementById('warning');\n        \n        \/\/ Reset warning\n        warningDiv.style.display = 'none';\n        warningDiv.style.background = '';\n        warningDiv.style.border = '';\n        warningDiv.style.color = '';\n        \n        \/\/ Validation\n        if (numIssues < 1) {\n            warningDiv.textContent = 'Number of issues must be at least 1';\n            warningDiv.style.background = '#fff3cd';\n            warningDiv.style.border = '1px solid #ffeeba';\n            warningDiv.style.color = '#856404';\n            warningDiv.style.display = 'block';\n            return;\n        }\n        \n        \/\/ Calculate average\n        const avgTime = totalDays \/ numIssues;\n        \n        \/\/ Display results\n        document.getElementById('avgResolutionTime').textContent = `${avgTime.toFixed(2)} days`;\n        \n        \/\/ Generate interpretation\n        let interpretation = '';\n        let benchmark = '';\n        \n        \/\/ Complexity adjustment factors\n        const complexityFactors = {\n            low: { good: 2, moderate: 4, high: 7 },\n            medium: { good: 4, moderate: 7, high: 10 },\n            high: { good: 7, moderate: 10, high: 14 }\n        };\n        \n        \/\/ Team size adjustment factors\n        const sizeFactors = {\n            small: 1.2,\n            medium: 1,\n            large: 0.8\n        };\n        \n        const adjustedThresholds = {\n            good: complexityFactors[complexity].good * sizeFactors[teamSize],\n            moderate: complexityFactors[complexity].moderate * sizeFactors[teamSize],\n            high: complexityFactors[complexity].high * sizeFactors[teamSize]\n        };\n        \n        if (avgTime <= adjustedThresholds.good) {\n            interpretation = 'Excellent resolution time. The team is performing well above expectations.';\n        } else if (avgTime <= adjustedThresholds.moderate) {\n            interpretation = 'Good resolution time. The team is performing within expected parameters.';\n        } else if (avgTime <= adjustedThresholds.high) {\n            interpretation = 'Moderate resolution time. Consider reviewing processes for potential improvements.';\n        } else {\n            interpretation = 'Resolution time is above expected ranges. Review workflow and resource allocation.';\n        }\n        \n        benchmark = `Expected resolution times for ${complexity} complexity issues with ${teamSize} teams: \n                    Good: <${adjustedThresholds.good.toFixed(1)} days, \n                    Moderate: ${adjustedThresholds.good.toFixed(1)}-${adjustedThresholds.moderate.toFixed(1)} days, \n                    High: >${adjustedThresholds.high.toFixed(1)} days`;\n        \n        document.getElementById('interpretation').innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #495057;\">${interpretation}<\/div>\n        `;\n        \n        document.getElementById('benchmark').innerHTML = `\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Benchmarks:<\/div>\n            <div>${benchmark}<\/div>\n        `;\n    }\n\n    function calculateSingleIssue() {\n        const startDate = new Date(document.getElementById('startDate').value);\n        const endDate = new Date(document.getElementById('endDate').value);\n        \n        if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {\n            document.getElementById('singleIssueResult').textContent = 'Please select both dates';\n            return;\n        }\n        \n        if (endDate < startDate) {\n            document.getElementById('singleIssueResult').textContent = 'End date must be after start date';\n            return;\n        }\n        \n        const diffTime = Math.abs(endDate - startDate);\n        const diffDays = Math.ceil(diffTime \/ (1000 * 60 * 60 * 24));\n        \n        document.getElementById('singleIssueResult').textContent = \n            `Resolution Time: ${diffDays} day${diffDays !== 1 ? 's' : ''}`;\n    }\n\n    \/\/ Add event listeners for main calculator\n    const inputs = document.querySelectorAll('#resolutionCalc input[type=\"number\"], #resolutionCalc select');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateAverage);\n        input.addEventListener('change', calculateAverage);\n    });\n    \n    \/\/ Add event listeners for date calculator\n    const dateInputs = document.querySelectorAll('#resolutionCalc input[type=\"date\"]');\n    dateInputs.forEach(input => {\n        input.addEventListener('change', calculateSingleIssue);\n    });\n    \n    \/\/ Initial calculations\n    calculateAverage();\n    calculateSingleIssue();\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Grievance Rate Calculator 2024 - WordPress Version -->\n<div id=\"wp-grievanceCalc\" class=\"wp-block-custom-html\">\n    <div style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n        <div style=\"background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px;\">\n            <h2 style=\"margin-top: 0; color: #2c3338;\">Grievance Rate Calculator<\/h2>\n            \n            <div style=\"background: #e9ecef; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n                <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                    Grievance Rate = (Number of Grievances \u00f7 Total Employees) \u00d7 100\n                <\/div>\n                <div style=\"font-size: 0.9em; color: #495057;\">\n                    This metric measures the prevalence of workplace grievances relative to workforce size.\n                    Results are expressed as a percentage, with higher values indicating a higher grievance rate.\n                <\/div>\n            <\/div>\n\n            <div style=\"margin-bottom: 20px;\">\n                <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 15px;\">\n                    <div>\n                        <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                            Number of Grievances:\n                        <\/label>\n                        <input type=\"number\" id=\"wp-numGrievances\" min=\"0\" value=\"0\"\n                               style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                        <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                            Total grievances filed in the period\n                        <\/div>\n                    <\/div>\n                    \n                    <div>\n                        <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                            Total Employees:\n                        <\/label>\n                        <input type=\"number\" id=\"wp-totalEmployees\" min=\"1\" value=\"1\"\n                               style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                        <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                            Total workforce size\n                        <\/div>\n                    <\/div>\n\n                    <div>\n                        <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                            Time Period:\n                        <\/label>\n                        <select id=\"wp-timePeriod\" \n                                style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                            <option value=\"monthly\">Monthly<\/option>\n                            <option value=\"quarterly\">Quarterly<\/option>\n                            <option value=\"annually\">Annually<\/option>\n                        <\/select>\n                    <\/div>\n\n                    <div>\n                        <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                            Department Size:\n                        <\/label>\n                        <select id=\"wp-deptSize\" \n                                style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                            <option value=\"small\">Small (< 50 employees)<\/option>\n                            <option value=\"medium\">Medium (50-250 employees)<\/option>\n                            <option value=\"large\">Large (> 250 employees)<\/option>\n                        <\/select>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <div id=\"wp-warning\" style=\"margin: 15px 0; padding: 10px; border-radius: 4px; display: none;\">\n            <\/div>\n\n            <div id=\"wp-results\" style=\"background: #e9ecef; padding: 15px; border-radius: 6px; margin-top: 20px;\">\n                <h3 style=\"margin-top: 0; color: #2c3338;\">Results<\/h3>\n                <div style=\"text-align: center; margin: 20px 0;\">\n                    <div style=\"font-weight: 500;\">Grievance Rate:<\/div>\n                    <div id=\"wp-grievanceRate\" style=\"font-size: 1.5em; color: #0056b3; font-weight: bold;\">0.00%<\/div>\n                <\/div>\n                <div id=\"wp-interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #dee2e6;\">\n                <\/div>\n                <div id=\"wp-benchmark\" style=\"margin-top: 15px; font-size: 0.9em; color: #495057;\">\n                <\/div>\n            <\/div>\n\n            <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n                <h4 style=\"margin-top: 0; color: #2c3338;\">Understanding the Results:<\/h4>\n                <ul style=\"margin: 0; padding-left: 20px;\">\n                    <li style=\"margin-bottom: 8px;\">Rate reflects grievances per 100 employees<\/li>\n                    <li style=\"margin-bottom: 8px;\">Consider time period when comparing rates<\/li>\n                    <li style=\"margin-bottom: 8px;\">Department size affects expected rates<\/li>\n                    <li>Historical context is important for interpretation<\/li>\n                <\/ul>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\njQuery(document).ready(function($) {\n    function calculateRate() {\n        const grievances = parseFloat($('#wp-numGrievances').val()) || 0;\n        const employees = parseFloat($('#wp-totalEmployees').val()) || 0;\n        const timePeriod = $('#wp-timePeriod').val();\n        const deptSize = $('#wp-deptSize').val();\n        \n        const warningDiv = $('#wp-warning');\n        \n        \/\/ Reset warning\n        warningDiv.hide();\n        warningDiv.css({\n            'background': '',\n            'border': '',\n            'color': ''\n        });\n        \n        \/\/ Validation\n        if (employees < 1) {\n            warningDiv.text('Total employees must be at least 1');\n            warningDiv.css({\n                'background': '#fff3cd',\n                'border': '1px solid #ffeeba',\n                'color': '#856404',\n                'display': 'block'\n            });\n            return;\n        }\n        \n        if (grievances > employees) {\n            warningDiv.text('Number of grievances cannot exceed total employees');\n            warningDiv.css({\n                'background': '#fff3cd',\n                'border': '1px solid #ffeeba',\n                'color': '#856404',\n                'display': 'block'\n            });\n            return;\n        }\n        \n        \/\/ Calculate rate\n        const rate = (grievances \/ employees) * 100;\n        \n        \/\/ Time period adjustment factors\n        const timeFactors = {\n            monthly: { low: 0.5, moderate: 1.5, high: 3 },\n            quarterly: { low: 1.5, moderate: 4, high: 8 },\n            annually: { low: 5, moderate: 12, high: 25 }\n        };\n        \n        \/\/ Size adjustment factors\n        const sizeFactors = {\n            small: 1.5,\n            medium: 1,\n            large: 0.8\n        };\n        \n        const adjustedThresholds = {\n            low: timeFactors[timePeriod].low * sizeFactors[deptSize],\n            moderate: timeFactors[timePeriod].moderate * sizeFactors[deptSize],\n            high: timeFactors[timePeriod].high * sizeFactors[deptSize]\n        };\n        \n        let interpretation = '';\n        if (rate === 0) {\n            interpretation = 'No grievances reported in this period. While this could indicate high workplace satisfaction, ensure reporting channels are accessible and well-communicated.';\n        } else if (rate <= adjustedThresholds.low) {\n            interpretation = 'The grievance rate is relatively low, suggesting effective workplace policies and communication channels.';\n        } else if (rate <= adjustedThresholds.moderate) {\n            interpretation = 'The grievance rate is within typical ranges. Regular monitoring and timely resolution remain important.';\n        } else if (rate <= adjustedThresholds.high) {\n            interpretation = 'The grievance rate is elevated. Consider reviewing workplace policies and strengthening conflict resolution mechanisms.';\n        } else {\n            interpretation = 'The grievance rate is significantly high. Immediate attention to workplace climate and grievance resolution processes is recommended.';\n        }\n        \n        const benchmark = `Typical ${timePeriod} rates for ${deptSize} departments: \n                    Low: <${adjustedThresholds.low.toFixed(1)}%, \n                    Moderate: ${adjustedThresholds.low.toFixed(1)}%-${adjustedThresholds.moderate.toFixed(1)}%, \n                    High: >${adjustedThresholds.high.toFixed(1)}%`;\n        \n        $('#wp-grievanceRate').text(rate.toFixed(2) + '%');\n        $('#wp-interpretation').html(`\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n            <div style=\"color: #495057;\">${interpretation}<\/div>\n        `);\n        $('#wp-benchmark').html(`\n            <div style=\"font-weight: 500; margin-bottom: 8px;\">Benchmarks:<\/div>\n            <div>${benchmark}<\/div>\n        `);\n    }\n\n    \/\/ Add event listeners\n    $('#wp-grievanceCalc input, #wp-grievanceCalc select').on('input change', calculateRate);\n    \n    \/\/ Initial calculation\n    calculateRate();\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Promotion Equity Ratio Calculator 2024 -->\n<style>\n.pec-container {\n    max-width: 800px;\n    margin: 20px auto;\n    padding: 20px;\n    font-family: system-ui, -apple-system, sans-serif;\n}\n\n.pec-inner {\n    background: #f8f9fa;\n    border: 1px solid #dee2e6;\n    border-radius: 8px;\n    padding: 20px;\n}\n\n.pec-formula {\n    background: #e9ecef;\n    padding: 15px;\n    border-radius: 6px;\n    margin-bottom: 20px;\n}\n\n.pec-grid {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 15px;\n}\n\n.pec-input {\n    width: 100%;\n    padding: 8px;\n    border: 1px solid #ced4da;\n    border-radius: 4px;\n    box-sizing: border-box;\n}\n\n.pec-label {\n    display: block;\n    margin-bottom: 5px;\n    font-weight: 500;\n}\n\n.pec-warning {\n    margin-bottom: 15px;\n    padding: 10px;\n    background: #fff3cd;\n    border: 1px solid #ffeeba;\n    border-radius: 4px;\n    color: #856404;\n    display: none;\n}\n\n.pec-results {\n    background: #e9ecef;\n    padding: 15px;\n    border-radius: 6px;\n    margin-top: 20px;\n    display: none;\n}\n\n.pec-help-box {\n    background: white;\n    padding: 15px;\n    border-radius: 6px;\n    margin-top: 20px;\n    box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n}\n\n.pec-threshold-section {\n    margin-top: 20px;\n    padding: 15px;\n    background: #f1f3f5;\n    border-radius: 6px;\n}\n\n.pec-threshold-grid {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 15px;\n    margin-top: 10px;\n}\n<\/style>\n\n<div class=\"pec-container\">\n    <div class=\"pec-inner\">\n        <h2>Promotion Equity Ratio Calculator<\/h2>\n        \n        <div class=\"pec-formula\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Promotion Equity Ratio = (% of Minority Promotions) \u00f7 (% of Minority Employees)\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #495057;\">\n                This ratio measures the equity of promotion practices by comparing the proportion of minorities in promotions to their representation in the workforce.\n                A ratio of 1.0 indicates proportional representation.\n            <\/div>\n        <\/div>\n\n        <div class=\"pec-threshold-section\">\n            <h3 style=\"margin-top: 0;\">Interpretation Thresholds<\/h3>\n            <p style=\"margin-bottom: 15px; color: #495057;\">Set your acceptable range for proportional representation:<\/p>\n            <div class=\"pec-threshold-grid\">\n                <div>\n                    <label class=\"pec-label\">Lower Threshold:<\/label>\n                    <input type=\"number\" id=\"pec_lower_threshold\" class=\"pec-input\" min=\"0.1\" max=\"0.99\" step=\"0.01\" value=\"0.80\">\n                    <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                        Ratios below this are considered underrepresentation\n                    <\/div>\n                <\/div>\n                <div>\n                    <label class=\"pec-label\">Upper Threshold:<\/label>\n                    <input type=\"number\" id=\"pec_upper_threshold\" class=\"pec-input\" min=\"1.01\" max=\"2.0\" step=\"0.01\" value=\"1.20\">\n                    <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                        Ratios above this are considered overrepresentation\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <div class=\"pec-grid\" style=\"margin-top: 20px;\">\n            <div>\n                <label class=\"pec-label\">Minority Promotions:<\/label>\n                <input type=\"number\" id=\"pec_min_promo\" class=\"pec-input\" min=\"0\" value=\"0\">\n                <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                    Number of minority employees promoted\n                <\/div>\n            <\/div>\n            \n            <div>\n                <label class=\"pec-label\">Total Promotions:<\/label>\n                <input type=\"number\" id=\"pec_total_promo\" class=\"pec-input\" min=\"0\" value=\"0\">\n            <\/div>\n\n            <div>\n                <label class=\"pec-label\">Total Minority Employees:<\/label>\n                <input type=\"number\" id=\"pec_min_empl\" class=\"pec-input\" min=\"0\" value=\"0\">\n            <\/div>\n\n            <div>\n                <label class=\"pec-label\">Total Employees:<\/label>\n                <input type=\"number\" id=\"pec_total_empl\" class=\"pec-input\" min=\"0\" value=\"0\">\n            <\/div>\n        <\/div>\n\n        <div id=\"pec_warning\" class=\"pec-warning\"><\/div>\n\n        <div id=\"pec_results\" class=\"pec-results\">\n            <h3 style=\"margin-top: 0; color: #2c3338;\">Results<\/h3>\n            <div class=\"pec-grid\">\n                <div>\n                    <div style=\"font-weight: 500;\">% Minority Promotions:<\/div>\n                    <div id=\"pec_promo_percent\" style=\"font-size: 1.1em; color: #0056b3;\"><\/div>\n                <\/div>\n                <div>\n                    <div style=\"font-weight: 500;\">% Minority Employees:<\/div>\n                    <div id=\"pec_empl_percent\" style=\"font-size: 1.1em; color: #0056b3;\"><\/div>\n                <\/div>\n            <\/div>\n            <div style=\"text-align: center; margin: 20px 0;\">\n                <div style=\"font-weight: 500;\">Promotion Equity Ratio:<\/div>\n                <div id=\"pec_equity_ratio\" style=\"font-size: 1.5em; color: #0056b3; font-weight: bold;\"><\/div>\n            <\/div>\n            <div id=\"pec_interpretation\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #dee2e6;\"><\/div>\n        <\/div>\n\n        <div class=\"pec-help-box\">\n            <h4 style=\"margin-top: 0; color: #2c3338;\">Interpretation Guide:<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px;\">\n                <li style=\"margin-bottom: 8px;\">Ratio between thresholds: Proportional representation in promotions<\/li>\n                <li style=\"margin-bottom: 8px;\">Ratio > Upper threshold: Higher promotion rate for minority employees<\/li>\n                <li style=\"margin-bottom: 8px;\">Ratio < Lower threshold: Lower promotion rate for minority employees<\/li>\n                <li>Consider sample size and context when interpreting results<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    'use strict';\n    \n    function initPromoEquityCalc() {\n        const calculator = {\n            init: function() {\n                this.bindEvents();\n            },\n\n            bindEvents: function() {\n                const inputs = document.querySelectorAll('.pec-input');\n                inputs.forEach(input => {\n                    input.addEventListener('input', () => this.calculateRatio());\n                });\n            },\n\n            validateThresholds: function() {\n                const lowerThreshold = parseFloat(document.getElementById('pec_lower_threshold').value);\n                const upperThreshold = parseFloat(document.getElementById('pec_upper_threshold').value);\n                \n                if (lowerThreshold >= 1 || upperThreshold <= 1 || lowerThreshold >= upperThreshold) {\n                    document.getElementById('pec_warning').textContent = \n                        'Invalid thresholds. Lower must be < 1.0 and Upper must be > 1.0';\n                    document.getElementById('pec_warning').style.display = 'block';\n                    return false;\n                }\n                return true;\n            },\n\n            calculateRatio: function() {\n                if (!this.validateThresholds()) return;\n\n                const minPromo = parseFloat(document.getElementById('pec_min_promo').value) || 0;\n                const totalPromo = parseFloat(document.getElementById('pec_total_promo').value) || 0;\n                const minEmpl = parseFloat(document.getElementById('pec_min_empl').value) || 0;\n                const totalEmpl = parseFloat(document.getElementById('pec_total_empl').value) || 0;\n                const lowerThreshold = parseFloat(document.getElementById('pec_lower_threshold').value);\n                const upperThreshold = parseFloat(document.getElementById('pec_upper_threshold').value);\n                \n                const warningDiv = document.getElementById('pec_warning');\n                const resultsDiv = document.getElementById('pec_results');\n                \n                warningDiv.style.display = 'none';\n                resultsDiv.style.display = 'none';\n                \n                \/\/ Validation checks\n                if (minPromo > totalPromo) {\n                    warningDiv.textContent = 'Minority promotions cannot exceed total promotions';\n                    warningDiv.style.display = 'block';\n                    return;\n                }\n                \n                if (minEmpl > totalEmpl) {\n                    warningDiv.textContent = 'Minority employees cannot exceed total employees';\n                    warningDiv.style.display = 'block';\n                    return;\n                }\n                \n                if (totalPromo === 0 || totalEmpl === 0) {\n                    warningDiv.textContent = 'Please enter valid numbers greater than zero';\n                    warningDiv.style.display = 'block';\n                    return;\n                }\n                \n                const promoPercent = (minPromo \/ totalPromo) * 100;\n                const emplPercent = (minEmpl \/ totalEmpl) * 100;\n                const ratio = promoPercent \/ emplPercent;\n                \n                document.getElementById('pec_promo_percent').textContent = `${promoPercent.toFixed(1)}%`;\n                document.getElementById('pec_empl_percent').textContent = `${emplPercent.toFixed(1)}%`;\n                document.getElementById('pec_equity_ratio').textContent = ratio.toFixed(2);\n                \n                let interpretation = '';\n                if (ratio > upperThreshold) {\n                    interpretation = `The promotion rate for minority employees is higher than their workforce representation (ratio > ${upperThreshold.toFixed(2)}).`;\n                } else if (ratio >= lowerThreshold && ratio <= upperThreshold) {\n                    interpretation = `Promotions appear to be proportionally distributed relative to workforce representation (ratio between ${lowerThreshold.toFixed(2)} and ${upperThreshold.toFixed(2)}).`;\n                } else if (ratio < lowerThreshold) {\n                    interpretation = `The promotion rate for minority employees is lower than their workforce representation (ratio < ${lowerThreshold.toFixed(2)}). Consider reviewing promotion practices for potential barriers.`;\n                }\n                \n                document.getElementById('pec_interpretation').innerHTML = `\n                    <div style=\"font-weight: 500; margin-bottom: 8px;\">Analysis:<\/div>\n                    <div style=\"color: #495057;\">${interpretation}<\/div>\n                `;\n                \n                resultsDiv.style.display = 'block';\n            }\n        };\n\n        calculator.init();\n    }\n\n    \/\/ WordPress-safe initialization\n    if (document.readyState === 'complete' || document.readyState === 'interactive') {\n        initPromoEquityCalc();\n    } else {\n        document.addEventListener('DOMContentLoaded', initPromoEquityCalc);\n    }\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Inclusion Index Calculator 2024 -->\n<div id=\"inclusionCalc2024\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <div style=\"background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px;\">\n        <h2 style=\"margin-top: 0; color: #2c3338;\">Inclusion Index Calculator<\/h2>\n        \n        <!-- Formula Explanation -->\n        <div style=\"background: #e9ecef; padding: 15px; border-radius: 6px; margin-bottom: 20px;\">\n            <div style=\"text-align: center; font-weight: bold; margin-bottom: 10px;\">\n                Inclusion Index = (Total Survey Points - Minimum Possible) \u00f7 (Maximum Possible - Minimum Possible) \u00d7 100\n            <\/div>\n            <div style=\"font-size: 0.9em; color: #495057;\">\n                This formula measures the level of inclusion based on survey responses using your chosen Likert scale range.\n                The score is normalized to always show a percentage between 0% and 100%.\n            <\/div>\n        <\/div>\n\n        <!-- Likert Scale Settings -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-bottom: 20px; border: 1px solid #dee2e6;\">\n            <h3 style=\"margin-top: 0; color: #2c3338; font-size: 1.1em;\">Likert Scale Settings<\/h3>\n            <div style=\"display: flex; gap: 15px; margin-bottom: 10px;\">\n                <div style=\"flex: 1;\">\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Minimum Scale Value:\n                    <\/label>\n                    <input type=\"number\" id=\"minScale2024\" value=\"1\" \n                           style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n                <div style=\"flex: 1;\">\n                    <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                        Maximum Scale Value:\n                    <\/label>\n                    <input type=\"number\" id=\"maxScale2024\" value=\"5\"\n                           style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                <\/div>\n            <\/div>\n            <div style=\"font-size: 0.8em; color: #666;\">\n                Example scales: 1-5, 1-7, 0-4, or any custom range\n            <\/div>\n        <\/div>\n\n        <!-- Calculator Inputs -->\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"margin-bottom: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Number of Survey Questions:\n                <\/label>\n                <input type=\"number\" id=\"questionCount2024\" min=\"1\" value=\"10\"\n                       style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                    Enter the total number of questions in your inclusion survey\n                <\/div>\n            <\/div>\n\n            <div style=\"margin-bottom: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Total Points Scored:\n                <\/label>\n                <input type=\"number\" id=\"totalScore2024\" \n                       style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                <div style=\"font-size: 0.8em; color: #666; margin-top: 3px;\">\n                    Sum of all response scores based on your chosen scale\n                <\/div>\n            <\/div>\n        <\/div>\n\n        <!-- Warning Display -->\n        <div id=\"warning2024\" style=\"display: none; margin-bottom: 15px; padding: 10px; background: #fff3cd; border: 1px solid #ffeeba; border-radius: 4px; color: #856404;\">\n        <\/div>\n\n        <!-- Results Display -->\n        <div id=\"results2024\" style=\"display: none; background: #e9ecef; padding: 15px; border-radius: 6px; margin-top: 20px;\">\n            <h3 style=\"margin-top: 0; color: #2c3338;\">Results<\/h3>\n            <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;\">\n                <span>Inclusion Index:<\/span>\n                <span id=\"indexScore2024\" style=\"font-size: 1.2em; font-weight: bold; font-family: monospace;\"><\/span>\n            <\/div>\n            <div id=\"interpretation2024\" style=\"margin-top: 15px; padding-top: 15px; border-top: 1px solid #dee2e6;\">\n            <\/div>\n        <\/div>\n\n        <!-- Information Box -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; margin-top: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n            <h4 style=\"margin-top: 0; color: #2c3338;\">Key Points:<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px;\">\n                <li style=\"margin-bottom: 8px;\">Customizable Likert scale range to match your survey format<\/li>\n                <li style=\"margin-bottom: 8px;\">Results are normalized to a 0-100% scale for easy interpretation<\/li>\n                <li style=\"margin-bottom: 8px;\">Higher percentages indicate greater inclusion levels<\/li>\n                <li>Consider response rates when interpreting results<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n\/\/ Function to calculate the inclusion index\nfunction calculateIndex2024() {\n    const minScale = parseInt(document.getElementById('minScale2024').value) || 1;\n    const maxScale = parseInt(document.getElementById('maxScale2024').value) || 5;\n    const questionCount = parseInt(document.getElementById('questionCount2024').value) || 0;\n    const totalScore = parseInt(document.getElementById('totalScore2024').value);\n    \n    const warningDiv = document.getElementById('warning2024');\n    const resultsDiv = document.getElementById('results2024');\n    \n    \/\/ Reset displays\n    warningDiv.style.display = 'none';\n    resultsDiv.style.display = 'none';\n    \n    \/\/ Validation checks\n    if (minScale >= maxScale) {\n        warningDiv.textContent = 'Maximum scale value must be greater than minimum scale value';\n        warningDiv.style.display = 'block';\n        return;\n    }\n    \n    if (questionCount <= 0) {\n        warningDiv.textContent = 'Please enter a valid number of questions';\n        warningDiv.style.display = 'block';\n        return;\n    }\n    \n    if (isNaN(totalScore)) {\n        warningDiv.textContent = 'Please enter the total score';\n        warningDiv.style.display = 'block';\n        return;\n    }\n    \n    const minPossible = minScale * questionCount;\n    const maxPossible = maxScale * questionCount;\n    \n    if (totalScore < minPossible || totalScore > maxPossible) {\n        warningDiv.textContent = `Total score must be between ${minPossible} and ${maxPossible} for ${questionCount} questions`;\n        warningDiv.style.display = 'block';\n        return;\n    }\n    \n    \/\/ Calculate normalized index\n    const index = ((totalScore - minPossible) \/ (maxPossible - minPossible)) * 100;\n    \n    \/\/ Display results\n    document.getElementById('indexScore2024').textContent = `${index.toFixed(1)}%`;\n    \n    \/\/ Provide interpretation\n    let interpretation = '';\n    if (index >= 90) {\n        interpretation = 'Exceptional level of inclusion. Continue maintaining these practices.';\n    } else if (index >= 75) {\n        interpretation = 'Strong inclusion practices. Consider fine-tuning specific areas.';\n    } else if (index >= 60) {\n        interpretation = 'Moderate inclusion. Identify key areas for improvement.';\n    } else {\n        interpretation = 'Significant opportunity for improving inclusion practices.';\n    }\n    \n    document.getElementById('interpretation2024').innerHTML = `\n        <div style=\"font-weight: 500; margin-bottom: 8px;\">Interpretation:<\/div>\n        <div style=\"color: #495057;\">${interpretation}<\/div>\n        <div style=\"margin-top: 10px; font-size: 0.9em; color: #666;\">\n            Minimum possible score: ${minPossible} points<br>\n            Maximum possible score: ${maxPossible} points<br>\n            Total score: ${totalScore} points\n        <\/div>\n    `;\n    \n    resultsDiv.style.display = 'block';\n}\n\n\/\/ Add event listeners\nwindow.addEventListener('load', function() {\n    const inputs = document.querySelectorAll('#inclusionCalc2024 input');\n    inputs.forEach(input => {\n        input.addEventListener('input', calculateIndex2024);\n    });\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Diversity Ratio Calculator - WordPress Version -->\n<style>\n.diversity-calc {\n    max-width: 800px;\n    margin: 20px auto;\n    padding: 20px;\n    font-family: system-ui, -apple-system, sans-serif;\n}\n.calc-container {\n    background: #f8f9fa;\n    border: 1px solid #dee2e6;\n    border-radius: 8px;\n    padding: 20px;\n    margin-bottom: 20px;\n}\n.formula-display {\n    background: #e9ecef;\n    padding: 15px;\n    border-radius: 6px;\n    text-align: center;\n    font-weight: bold;\n    margin-bottom: 20px;\n}\n.group-input {\n    width: 100%;\n    padding: 8px;\n    border: 1px solid #ced4da;\n    border-radius: 4px;\n    box-sizing: border-box;\n}\n.btn-add {\n    background: #0073aa;\n    color: white;\n    border: none;\n    padding: 8px 16px;\n    border-radius: 4px;\n    cursor: pointer;\n    margin-bottom: 20px;\n}\n.btn-remove {\n    background: #dc3545;\n    color: white;\n    border: none;\n    padding: 8px;\n    border-radius: 4px;\n    cursor: pointer;\n}\n.error-message {\n    color: #dc3545;\n    margin-bottom: 15px;\n    display: none;\n    padding: 10px;\n    background: #ffe6e6;\n    border-radius: 4px;\n}\n.results {\n    margin-top: 20px;\n    background: #e9ecef;\n    padding: 15px;\n    border-radius: 6px;\n    display: none;\n}\n.key-points {\n    background: white;\n    padding: 15px;\n    border-radius: 6px;\n    box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n    margin-top: 20px;\n}\n.group-container {\n    margin-bottom: 15px;\n    display: flex;\n    gap: 10px;\n    align-items: center;\n}\n<\/style>\n\n<div class=\"diversity-calc\">\n    <div class=\"calc-container\">\n        <h2 style=\"margin-top: 0;\">Diversity Ratio Calculator<\/h2>\n        \n        <div class=\"formula-display\">\n            Individual Ratio = (Group Count \u00f7 Total Employees) \u00d7 100\n            <br>\n            Total Diversity = (Sum of All Groups \u00f7 Total Employees) \u00d7 100\n        <\/div>\n\n        <div class=\"groups-container\"><\/div>\n\n        <button class=\"btn-add\">Add Another Group<\/button>\n\n        <div style=\"margin-bottom: 20px;\">\n            <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                Total Number of Employees:\n            <\/label>\n            <input type=\"number\" class=\"total-employees group-input\" min=\"1\">\n        <\/div>\n\n        <div class=\"error-message\"><\/div>\n\n        <div class=\"results\">\n            <h3 style=\"margin-top: 0;\">Results:<\/h3>\n            <div class=\"results-content\"><\/div>\n            <div class=\"total-diversity-result\"><\/div>\n        <\/div>\n\n        <div class=\"key-points\">\n            <h4 style=\"margin-top: 0;\">Key Points:<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px;\">\n                <li style=\"margin-bottom: 8px;\">Results are expressed as percentages (0% to 100%)<\/li>\n                <li style=\"margin-bottom: 8px;\">Higher percentages indicate greater representation<\/li>\n                <li style=\"margin-bottom: 8px;\">Individual ratios show representation per group<\/li>\n                <li style=\"margin-bottom: 8px;\">Total diversity shows overall representation across all groups<\/li>\n                <li>Useful for tracking both individual and total diversity metrics<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script type=\"text\/javascript\">\n(function() {\n    \/\/ Wait for DOM to be ready\n    document.addEventListener('DOMContentLoaded', function() {\n        let groupCounter = 0;\n        const calcContainer = document.querySelector('.diversity-calc');\n        const groupsContainer = calcContainer.querySelector('.groups-container');\n        const addButton = calcContainer.querySelector('.btn-add');\n        const totalEmployeesInput = calcContainer.querySelector('.total-employees');\n\n        \/\/ Function to add a new group\n        function addGroup() {\n            const groupDiv = document.createElement('div');\n            groupDiv.className = 'group-container';\n            \n            groupDiv.innerHTML = `\n                <input type=\"text\" placeholder=\"Group Name\" class=\"group-input\" style=\"flex: 2;\">\n                <input type=\"number\" min=\"0\" placeholder=\"Count\" class=\"group-input\" style=\"flex: 1;\">\n                ${groupCounter > 0 ? `\n                <button class=\"btn-remove\">Remove<\/button>` : ''}\n            `;\n            \n            groupsContainer.appendChild(groupDiv);\n            groupCounter++;\n            \n            \/\/ Add input event listeners\n            const inputs = groupDiv.querySelectorAll('input');\n            inputs.forEach(input => {\n                input.addEventListener('input', calculateRatios);\n            });\n\n            \/\/ Add remove button listener\n            const removeButton = groupDiv.querySelector('.btn-remove');\n            if (removeButton) {\n                removeButton.addEventListener('click', function() {\n                    groupDiv.remove();\n                    groupCounter--;\n                    calculateRatios();\n                });\n            }\n        }\n\n        \/\/ Function to calculate ratios\n        function calculateRatios() {\n            const errorDiv = calcContainer.querySelector('.error-message');\n            const resultsDiv = calcContainer.querySelector('.results');\n            const resultsContent = calcContainer.querySelector('.results-content');\n            const totalDiversityResult = calcContainer.querySelector('.total-diversity-result');\n            const totalEmployees = parseInt(totalEmployeesInput.value);\n            \n            \/\/ Reset error and results\n            errorDiv.style.display = 'none';\n            resultsDiv.style.display = 'none';\n            \n            \/\/ Validate total employees\n            if (!totalEmployees || totalEmployees <= 0) {\n                errorDiv.textContent = 'Please enter a valid total number of employees';\n                errorDiv.style.display = 'block';\n                return;\n            }\n            \n            \/\/ Get all groups\n            const groups = groupsContainer.children;\n            let resultsHTML = '';\n            let isValid = true;\n            let totalDiversityCount = 0;\n            \n            \/\/ Calculate ratio for each group\n            for (let group of groups) {\n                const inputs = group.querySelectorAll('input');\n                const name = inputs[0].value || 'Unnamed Group';\n                const count = parseInt(inputs[1].value) || 0;\n                \n                if (count > totalEmployees) {\n                    errorDiv.textContent = `${name}'s count cannot exceed total employees`;\n                    errorDiv.style.display = 'block';\n                    isValid = false;\n                    break;\n                }\n                \n                totalDiversityCount += count;\n                const ratio = (count \/ totalEmployees) * 100;\n                resultsHTML += `\n                    <div style=\"display: flex; justify-content: space-between; margin-bottom: 8px;\">\n                        <span>${name}:<\/span>\n                        <span style=\"font-family: monospace;\">${ratio.toFixed(2)}%<\/span>\n                    <\/div>\n                `;\n            }\n            \n            if (isValid && resultsHTML) {\n                const totalDiversityRatio = (totalDiversityCount \/ totalEmployees) * 100;\n                \n                resultsContent.innerHTML = resultsHTML;\n                \n                totalDiversityResult.innerHTML = `\n                    <div style=\"font-weight: bold;\">\n                        <div style=\"display: flex; justify-content: space-between; margin-bottom: 8px;\">\n                            <span>Total Diversity:<\/span>\n                            <span style=\"font-family: monospace;\">${totalDiversityRatio.toFixed(2)}%<\/span>\n                        <\/div>\n                        <div style=\"font-size: 0.9em; color: #666; margin-top: 5px;\">\n                            Total represented: ${totalDiversityCount} out of ${totalEmployees} employees\n                        <\/div>\n                    <\/div>\n                `;\n                \n                resultsDiv.style.display = 'block';\n                \n                if (totalDiversityRatio > 100) {\n                    errorDiv.textContent = 'Warning: Total diversity exceeds 100%. This may indicate overlapping group memberships.';\n                    errorDiv.style.display = 'block';\n                }\n            }\n        }\n\n        \/\/ Set up initial state\n        addButton.addEventListener('click', addGroup);\n        totalEmployeesInput.addEventListener('input', calculateRatios);\n        addGroup(); \/\/ Add initial group\n    });\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .ltifr-calculator {\n        max-width: 800px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .formula-explanation {\n        background-color: #f8f9fa;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .calculator-section {\n        background-color: #ffffff;\n        padding: 20px;\n        border-radius: 8px;\n        box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n    }\n    \n    .input-group {\n        margin-bottom: 20px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 8px;\n        font-weight: 500;\n        color: #333;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 10px;\n        border: 2px solid #ddd;\n        border-radius: 4px;\n        font-size: 16px;\n        transition: border-color 0.3s;\n    }\n    \n    .input-group input:focus {\n        border-color: #0073aa;\n        outline: none;\n    }\n    \n    .warning-message {\n        color: #856404;\n        background-color: #fff3cd;\n        border: 1px solid #ffeeba;\n        padding: 10px;\n        margin: 10px 0;\n        border-radius: 4px;\n        display: none;\n    }\n    \n    .info-box {\n        background-color: #e9ecef;\n        padding: 15px;\n        margin: 15px 0;\n        border-radius: 8px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 12px 24px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 16px;\n        transition: background-color 0.3s;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .results-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 20px;\n        margin-top: 20px;\n    }\n    \n    .metric-card {\n        background-color: #f8f9fa;\n        padding: 15px;\n        border-radius: 8px;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 14px;\n        color: #666;\n        margin-bottom: 8px;\n    }\n    \n    .metric-value {\n        font-size: 24px;\n        font-weight: bold;\n    }\n    \n    .safety-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 8px;\n        text-align: center;\n        transition: all 0.3s;\n    }\n    \n    .progress-bar {\n        width: 100%;\n        height: 20px;\n        background-color: #e9ecef;\n        border-radius: 10px;\n        margin-top: 20px;\n        overflow: hidden;\n    }\n    \n    .progress-fill {\n        height: 100%;\n        background-color: #28a745;\n        width: 0%;\n        transition: width 0.5s ease-in-out;\n    }\n    \n    .details-section {\n        margin-top: 20px;\n        background-color: #f1f3f5;\n        padding: 15px;\n        border-radius: 8px;\n    }\n<\/style>\n\n<div class=\"ltifr-calculator\">\n    <div class=\"formula-explanation\">\n        <h3>Lost Time Injury Frequency Rate (LTIFR) Calculator<\/h3>\n        \n        <div class=\"info-box\">\n            <h4>LTIFR Formula Breakdown<\/h4>\n            <p><strong>Formula:<\/strong> (Number of Lost Time Injuries \u00d7 1,000,000) \u00f7 Total Hours Worked<\/p>\n            \n            <ul>\n                <li><strong>Numerator:<\/strong> Lost Time Injuries multiplied by 1,000,000\n                    <br><em>Standardization factor to create a consistent comparison metric<\/em>\n                <\/li>\n                <li><strong>Denominator:<\/strong> Total hours worked by all employees\n                    <br><em>Provides context for injury frequency<\/em>\n                <\/li>\n                <li><strong>Result:<\/strong> Number of injuries per million hours worked\n                    <br><em>Allows for fair comparison across different organization sizes<\/em>\n                <\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <div class=\"input-group\">\n            <label for=\"lostTimeInjuries\">Number of Lost Time Injuries:<\/label>\n            <input type=\"number\" id=\"lostTimeInjuries\" min=\"0\" step=\"1\" placeholder=\"Enter number of lost time injuries\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"totalHoursWorked\">Total Hours Worked:<\/label>\n            <input type=\"number\" id=\"totalHoursWorked\" min=\"1\" placeholder=\"Enter total hours worked\">\n        <\/div>\n        \n        <div id=\"warningMessage\" class=\"warning-message\"><\/div>\n        \n        <button onclick=\"calculateLTIFR()\" class=\"calculate-button\">Calculate LTIFR<\/button>\n        \n        <div class=\"results-grid\">\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Lost Time Injuries<\/div>\n                <div id=\"injuriesMetric\" class=\"metric-value\">0<\/div>\n            <\/div>\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Total Hours Worked<\/div>\n                <div id=\"hoursMetric\" class=\"metric-value\">0<\/div>\n            <\/div>\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">LTIFR<\/div>\n                <div id=\"ltirfMetric\" class=\"metric-value\">0.0<\/div>\n            <\/div>\n        <\/div>\n        \n        <div class=\"progress-bar\">\n            <div id=\"progressFill\" class=\"progress-fill\"><\/div>\n        <\/div>\n        \n        <div id=\"safetyIndicator\" class=\"safety-indicator\"><\/div>\n        \n        <div id=\"detailsSection\" class=\"details-section\" style=\"display:none;\">\n            <h4>Calculation Details<\/h4>\n            <p id=\"calculationSteps\"><\/p>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateLTIFR() {\n    \/\/ Get input values\n    const lostTimeInjuries = parseInt(document.getElementById('lostTimeInjuries').value) || 0;\n    const totalHoursWorked = parseInt(document.getElementById('totalHoursWorked').value) || 0;\n    \n    \/\/ Reset warning message\n    const warningMsg = document.getElementById('warningMessage');\n    warningMsg.style.display = 'none';\n    warningMsg.textContent = '';\n    \n    \/\/ Validate inputs\n    if (totalHoursWorked <= 0) {\n        warningMsg.textContent = 'Total hours worked must be greater than 0';\n        warningMsg.style.display = 'block';\n        return;\n    }\n    \n    if (lostTimeInjuries < 0) {\n        warningMsg.textContent = 'Number of lost time injuries cannot be negative';\n        warningMsg.style.display = 'block';\n        return;\n    }\n    \n    \/\/ Calculate LTIFR\n    const ltifr = (lostTimeInjuries * 1000000) \/ totalHoursWorked;\n    \n    \/\/ Update metrics\n    document.getElementById('injuriesMetric').textContent = lostTimeInjuries;\n    document.getElementById('hoursMetric').textContent = totalHoursWorked.toLocaleString();\n    document.getElementById('ltirfMetric').textContent = ltifr.toFixed(2);\n    \n    \/\/ Update progress bar\n    const progressFill = document.getElementById('progressFill');\n    progressFill.style.width = Math.min((ltifr \/ 10) * 100, 100) + '%';\n    \n    \/\/ Update safety indicator\n    const safetyIndicator = document.getElementById('safetyIndicator');\n    let message = '';\n    let color = '';\n    \n    if (ltifr < 1) {\n        message = 'Excellent Safety Performance - Significantly Below Industry Average';\n        color = '#28a745';\n    } else if (ltifr < 3) {\n        message = 'Good Safety Performance - Near Industry Best Practices';\n        color = '#17a2b8';\n    } else if (ltifr < 5) {\n        message = 'Moderate Safety Performance - Room for Improvement';\n        color = '#ffc107';\n    } else {\n        message = 'Safety Concern - Immediate Action Required';\n        color = '#dc3545';\n    }\n    \n    safetyIndicator.textContent = message;\n    safetyIndicator.style.backgroundColor = color + '20';\n    safetyIndicator.style.color = color;\n    \n    \/\/ Update calculation details\n    const detailsSection = document.getElementById('detailsSection');\n    const calculationSteps = document.getElementById('calculationSteps');\n    detailsSection.style.display = 'block';\n    calculationSteps.innerHTML = `\n        <strong>Calculation Steps:<\/strong><br>\n        Step 1: ${lostTimeInjuries} injuries \u00d7 1,000,000 = ${lostTimeInjuries * 1000000}<br>\n        Step 2: ${lostTimeInjuries * 1000000} \u00f7 ${totalHoursWorked} = ${ltifr.toFixed(2)}<br>\n        <strong>Interpretation:<\/strong> ${ltifr.toFixed(2)} injuries per million hours worked\n    `;\n}\n\n\/\/ Initialize calculator\ndocument.addEventListener('DOMContentLoaded', function() {\n    calculateLTIFR();\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .incident-calculator {\n        max-width: 800px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .formula-explanation {\n        background-color: #f8f9fa;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .calculator-section {\n        background-color: #ffffff;\n        padding: 20px;\n        border-radius: 8px;\n        box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n    }\n    \n    .input-group {\n        margin-bottom: 20px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 8px;\n        font-weight: 500;\n        color: #333;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 10px;\n        border: 2px solid #ddd;\n        border-radius: 4px;\n        font-size: 16px;\n        transition: border-color 0.3s;\n    }\n    \n    .input-group input:focus {\n        border-color: #0073aa;\n        outline: none;\n    }\n    \n    .warning-message {\n        color: #856404;\n        background-color: #fff3cd;\n        border: 1px solid #ffeeba;\n        padding: 10px;\n        margin: 10px 0;\n        border-radius: 4px;\n        display: none;\n    }\n    \n    .info-box {\n        background-color: #e9ecef;\n        padding: 15px;\n        margin: 15px 0;\n        border-radius: 8px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 12px 24px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 16px;\n        transition: background-color 0.3s;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .results-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 20px;\n        margin-top: 20px;\n    }\n    \n    .metric-card {\n        background-color: #f8f9fa;\n        padding: 15px;\n        border-radius: 8px;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 14px;\n        color: #666;\n        margin-bottom: 8px;\n    }\n    \n    .metric-value {\n        font-size: 24px;\n        font-weight: bold;\n    }\n    \n    .safety-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 8px;\n        text-align: center;\n        transition: all 0.3s;\n    }\n    \n    .formula-breakdown {\n        margin: 20px 0;\n        padding: 15px;\n        background-color: #f1f8ff;\n        border-radius: 8px;\n    }\n    \n    .step-by-step {\n        margin-top: 15px;\n        padding-left: 20px;\n    }\n    \n    .benchmark-table {\n        width: 100%;\n        border-collapse: collapse;\n        margin: 15px 0;\n    }\n    \n    .benchmark-table th,\n    .benchmark-table td {\n        padding: 8px;\n        border: 1px solid #dee2e6;\n        text-align: left;\n    }\n    \n    .benchmark-table th {\n        background-color: #f8f9fa;\n    }\n<\/style>\n\n<div class=\"incident-calculator\">\n    <div class=\"formula-explanation\">\n        <h3>Incident Rate Calculator (OSHA Standard)<\/h3>\n        \n        <div class=\"formula-breakdown\">\n            <h4>Formula Components:<\/h4>\n            <p><strong>Formula:<\/strong> (Number of incidents \u00d7 200,000) \u00f7 Total hours worked<\/p>\n            \n            <div class=\"info-box\">\n                <h4>Understanding the Formula:<\/h4>\n                <ul>\n                    <li><strong>Numerator:<\/strong> Number of recordable incidents \u00d7 200,000 hours\n                        <br><em>The 200,000 hours represents the equivalent of 100 employees working 40 hours per week for 50 weeks<\/em>\n                    <\/li>\n                    <li><strong>Denominator:<\/strong> Actual total hours worked by all employees\n                        <br><em>Includes all employee hours, including overtime and part-time workers<\/em>\n                    <\/li>\n                    <li><strong>Result:<\/strong> Incidents per 100 full-time equivalent workers\n                        <br><em>Standardized measure allowing comparison between different size organizations<\/em>\n                    <\/li>\n                <\/ul>\n            <\/div>\n            \n            <div class=\"info-box\">\n                <h4>Base Factor (200,000) Explained:<\/h4>\n                <p>The 200,000 hours base factor is derived from:<\/p>\n                <ul>\n                    <li>100 employees \u00d7 40 hours = 4,000 hours per week<\/li>\n                    <li>4,000 hours \u00d7 50 weeks = 200,000 hours per year<\/li>\n                    <li>Represents a standardized annual work schedule<\/li>\n                    <li>Enables fair comparison between organizations<\/li>\n                <\/ul>\n            <\/div>\n        <\/div>\n\n        <div class=\"benchmark-table\">\n            <h4>Industry Benchmarks:<\/h4>\n            <table>\n                <tr>\n                    <th>Incident Rate<\/th>\n                    <th>Performance Level<\/th>\n                    <th>Typical Industries<\/th>\n                <\/tr>\n                <tr>\n                    <td>0.0 - 1.0<\/td>\n                    <td>Excellent<\/td>\n                    <td>Professional Services, Technology<\/td>\n                <\/tr>\n                <tr>\n                    <td>1.1 - 2.5<\/td>\n                    <td>Good<\/td>\n                    <td>Light Manufacturing, Healthcare<\/td>\n                <\/tr>\n                <tr>\n                    <td>2.6 - 3.5<\/td>\n                    <td>Average<\/td>\n                    <td>General Manufacturing<\/td>\n                <\/tr>\n                <tr>\n                    <td>3.6+<\/td>\n                    <td>Needs Improvement<\/td>\n                    <td>Heavy Industry, Construction<\/td>\n                <\/tr>\n            <\/table>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <div class=\"input-group\">\n            <label for=\"incidents\">Number of Recordable Incidents:<\/label>\n            <input type=\"number\" id=\"incidents\" min=\"0\" step=\"1\" placeholder=\"Enter number of incidents\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"hoursWorked\">Total Hours Worked:<\/label>\n            <input type=\"number\" id=\"hoursWorked\" min=\"1\" placeholder=\"Enter total hours worked\">\n        <\/div>\n        \n        <div id=\"warningMessage\" class=\"warning-message\"><\/div>\n        \n        <button onclick=\"calculateIncidentRate()\" class=\"calculate-button\">Calculate Incident Rate<\/button>\n        \n        <div class=\"results-grid\">\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Recordable Incidents<\/div>\n                <div id=\"incidentsMetric\" class=\"metric-value\">0<\/div>\n            <\/div>\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Hours Worked<\/div>\n                <div id=\"hoursMetric\" class=\"metric-value\">0<\/div>\n            <\/div>\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Incident Rate<\/div>\n                <div id=\"rateMetric\" class=\"metric-value\">0.00<\/div>\n            <\/div>\n        <\/div>\n        \n        <div id=\"safetyIndicator\" class=\"safety-indicator\"><\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateIncidentRate() {\n    const incidents = parseInt(document.getElementById('incidents').value) || 0;\n    const hours = parseInt(document.getElementById('hoursWorked').value) || 0;\n    \n    const warningMsg = document.getElementById('warningMessage');\n    warningMsg.style.display = 'none';\n    \n    \/\/ Validation\n    if (hours === 0) {\n        warningMsg.textContent = 'Please enter total hours worked (must be greater than 0)';\n        warningMsg.style.display = 'block';\n        return;\n    }\n    \n    if (hours < 2000) {\n        warningMsg.textContent = 'Warning: Total hours worked seems low. Please verify your input (typical full-time employee works 2000 hours\/year)';\n        warningMsg.style.display = 'block';\n    }\n    \n    \/\/ Calculate incident rate\n    const rate = ((incidents * 200000) \/ hours).toFixed(2);\n    \n    \/\/ Update metrics\n    document.getElementById('incidentsMetric').textContent = incidents;\n    document.getElementById('hoursMetric').textContent = hours.toLocaleString();\n    document.getElementById('rateMetric').textContent = rate;\n    \n    \/\/ Update safety indicator\n    const indicator = document.getElementById('safetyIndicator');\n    let message = '';\n    let color = '';\n    \n    if (rate <= 1.0) {\n        message = 'Excellent Safety Performance';\n        color = '#28a745';\n    } else if (rate <= 2.5) {\n        message = 'Good Safety Performance';\n        color = '#17a2b8';\n    } else if (rate <= 3.5) {\n        message = 'Average Safety Performance - Consider Safety Review';\n        color = '#ffc107';\n    } else {\n        message = 'Safety Performance Needs Improvement - Immediate Action Recommended';\n        color = '#dc3545';\n    }\n    \n    indicator.textContent = message;\n    indicator.style.backgroundColor = color + '20';\n    indicator.style.color = color;\n}\n\n\/\/ Initialize calculator\ndocument.addEventListener('DOMContentLoaded', function() {\n    calculateIncidentRate();\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .span-calculator {\n        max-width: 800px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .formula-explanation {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .calculator-section {\n        background-color: #ffffff;\n        padding: 20px;\n        border-radius: 8px;\n        box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n    }\n    \n    .input-group {\n        margin-bottom: 20px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 8px;\n        font-weight: 500;\n        color: #333;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 10px;\n        border: 2px solid #ddd;\n        border-radius: 4px;\n        font-size: 16px;\n        transition: border-color 0.3s;\n    }\n    \n    .input-group input:focus {\n        border-color: #0073aa;\n        outline: none;\n    }\n    \n    .warning-message {\n        color: #856404;\n        background-color: #fff3cd;\n        border: 1px solid #ffeeba;\n        padding: 10px;\n        margin: 10px 0;\n        border-radius: 4px;\n        display: none;\n    }\n    \n    .info-message {\n        color: #004085;\n        background-color: #cce5ff;\n        border: 1px solid #b8daff;\n        padding: 10px;\n        margin: 10px 0;\n        border-radius: 4px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 12px 24px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 16px;\n        transition: background-color 0.3s;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .results-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 20px;\n        margin-top: 20px;\n    }\n    \n    .metric-card {\n        background-color: #f8f9fa;\n        padding: 15px;\n        border-radius: 8px;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 14px;\n        color: #666;\n        margin-bottom: 8px;\n    }\n    \n    .metric-value {\n        font-size: 24px;\n        font-weight: bold;\n        color: #0073aa;\n    }\n    \n    .structure-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 8px;\n        text-align: center;\n        transition: background-color 0.3s;\n    }\n    \n    .organization-visual {\n        margin-top: 20px;\n        text-align: center;\n    }\n    \n    .org-chart {\n        display: inline-block;\n        padding: 20px;\n        background-color: #f8f9fa;\n        border-radius: 8px;\n    }\n    \n    .manager-icon {\n        color: #0073aa;\n        font-size: 24px;\n        margin-bottom: 10px;\n    }\n    \n    .employee-icons {\n        display: flex;\n        flex-wrap: wrap;\n        justify-content: center;\n        gap: 10px;\n    }\n    \n    .employee-icon {\n        color: #666;\n        font-size: 18px;\n    }\n<\/style>\n\n<div class=\"span-calculator\">\n    <div class=\"formula-explanation\">\n        <h3>Management Span of Control Calculator<\/h3>\n        <p><strong>Formula:<\/strong> Total number of employees \u00f7 Total number of managers<\/p>\n        \n        <div class=\"formula-details\" style=\"margin: 20px 0; padding: 15px; background-color: #e9ecef; border-radius: 8px;\">\n            <h4 style=\"margin-top: 0;\">Formula Components:<\/h4>\n            <ul style=\"list-style-type: none; padding-left: 0;\">\n                <li style=\"margin-bottom: 10px;\"><strong>Numerator:<\/strong> Total number of employees\n                    <br><em style=\"color: #666;\">Includes: All full-time and part-time employees, excluding managers<\/em>\n                <\/li>\n                <li style=\"margin-bottom: 10px;\"><strong>Denominator:<\/strong> Total number of managers\n                    <br><em style=\"color: #666;\">Includes: All levels of management (supervisors, middle managers, executives)<\/em>\n                <\/li>\n                <li><strong>Result:<\/strong> Average number of employees per manager\n                    <br><em style=\"color: #666;\">Represents: The typical supervisory load for managers in the organization<\/em>\n                <\/li>\n            <\/ul>\n        <\/div>\n\n        <div class=\"formula-implications\" style=\"margin: 20px 0; padding: 15px; background-color: #e9ecef; border-radius: 8px;\">\n            <h4 style=\"margin-top: 0;\">Understanding the Results:<\/h4>\n            <p><strong>Higher Ratio (>15):<\/strong><\/p>\n            <ul style=\"margin-bottom: 15px;\">\n                <li>More autonomy for employees<\/li>\n                <li>Less direct supervision<\/li>\n                <li>Cost-efficient management structure<\/li>\n                <li>Potential communication challenges<\/li>\n            <\/ul>\n            \n            <p><strong>Lower Ratio (<8):<\/strong><\/p>\n            <ul style=\"margin-bottom: 15px;\">\n                <li>Close supervision and monitoring<\/li>\n                <li>Better employee guidance and development<\/li>\n                <li>Higher management costs<\/li>\n                <li>Potential micromanagement risks<\/li>\n            <\/ul>\n        <\/div>\n\n        <div class=\"industry-context\" style=\"margin: 20px 0; padding: 15px; background-color: #e9ecef; border-radius: 8px;\">\n            <h4 style=\"margin-top: 0;\">Industry Considerations:<\/h4>\n            <ul>\n                <li><strong>Technology Companies:<\/strong> Often have wider spans (15-30) due to skilled, autonomous workforce<\/li>\n                <li><strong>Manufacturing:<\/strong> Typically moderate spans (10-15) balancing supervision and efficiency<\/li>\n                <li><strong>Healthcare:<\/strong> Usually narrower spans (6-12) due to complexity and risk management<\/li>\n                <li><strong>Retail:<\/strong> Can vary widely (8-20) depending on store size and structure<\/li>\n            <\/ul>\n        <\/div>\n\n        <div class=\"info-message\">\n            <strong>Typical Ranges:<\/strong><br>\n            \u2022 5 or fewer: Very close supervision, potentially top-heavy<br>\n            \u2022 6-10: Traditional hierarchical structure<br>\n            \u2022 11-20: Flatter organization structure<br>\n            \u2022 20+: Very flat organization\n        <\/div>\n        \n        <p><strong>Purpose:<\/strong> This ratio helps organizations assess their management structure by calculating the average number of employees reporting to each manager. It's a key metric for organizational design and efficiency analysis.<\/p>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <div class=\"input-group\">\n            <label for=\"totalEmployees\">Total Number of Employees:<\/label>\n            <input type=\"number\" id=\"totalEmployees\" min=\"1\" placeholder=\"Enter total number of employees\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"totalManagers\">Total Number of Managers:<\/label>\n            <input type=\"number\" id=\"totalManagers\" min=\"1\" placeholder=\"Enter total number of managers\">\n        <\/div>\n        \n        <div id=\"warningMessage\" class=\"warning-message\"><\/div>\n        \n        <button onclick=\"calculateSpan()\" class=\"calculate-button\">Calculate Span of Control<\/button>\n        \n        <div class=\"results-grid\">\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Total Employees<\/div>\n                <div id=\"employeesMetric\" class=\"metric-value\">0<\/div>\n            <\/div>\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Total Managers<\/div>\n                <div id=\"managersMetric\" class=\"metric-value\">0<\/div>\n            <\/div>\n            <div class=\"metric-card\">\n                <div class=\"metric-title\">Employees per Manager<\/div>\n                <div id=\"spanMetric\" class=\"metric-value\">0<\/div>\n            <\/div>\n        <\/div>\n        \n        <div id=\"structureIndicator\" class=\"structure-indicator\"><\/div>\n        \n        <div class=\"organization-visual\">\n            <div id=\"orgChart\" class=\"org-chart\">\n                <div class=\"manager-icon\">\ud83d\udc54<\/div>\n                <div id=\"employeeIcons\" class=\"employee-icons\"><\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateSpan() {\n    const employees = parseInt(document.getElementById('totalEmployees').value) || 0;\n    const managers = parseInt(document.getElementById('totalManagers').value) || 0;\n    \n    const warningMsg = document.getElementById('warningMessage');\n    warningMsg.style.display = 'none';\n    \n    \/\/ Validation\n    if (employees === 0 || managers === 0) {\n        warningMsg.textContent = 'Please enter values greater than 0 for both fields';\n        warningMsg.style.display = 'block';\n        return;\n    }\n    \n    if (managers >= employees) {\n        warningMsg.textContent = 'Warning: Number of managers should be less than total employees';\n        warningMsg.style.display = 'block';\n        return;\n    }\n    \n    \/\/ Calculate span of control\n    const span = (employees \/ managers).toFixed(1);\n    \n    \/\/ Update metrics\n    document.getElementById('employeesMetric').textContent = employees;\n    document.getElementById('managersMetric').textContent = managers;\n    document.getElementById('spanMetric').textContent = span;\n    \n    \/\/ Update structure indicator\n    const indicator = document.getElementById('structureIndicator');\n    let structure = '';\n    let color = '';\n    \n    if (span <= 5) {\n        structure = 'Very close supervision, potentially top-heavy structure';\n        color = '#dc3545';\n    } else if (span <= 10) {\n        structure = 'Traditional hierarchical structure';\n        color = '#28a745';\n    } else if (span <= 20) {\n        structure = 'Flatter organization structure';\n        color = '#17a2b8';\n    } else {\n        structure = 'Very flat organization, wide span of control';\n        color = '#ffc107';\n    }\n    \n    indicator.textContent = structure;\n    indicator.style.backgroundColor = color + '20';\n    indicator.style.color = color;\n    \n    \/\/ Update visualization\n    updateOrgChart(span);\n}\n\nfunction updateOrgChart(span) {\n    const employeeIcons = document.getElementById('employeeIcons');\n    employeeIcons.innerHTML = '';\n    \n    \/\/ Show up to 10 representative employee icons\n    const iconCount = Math.min(Math.round(span), 10);\n    for (let i = 0; i < iconCount; i++) {\n        const icon = document.createElement('span');\n        icon.className = 'employee-icon';\n        icon.textContent = '\ud83d\udc64';\n        employeeIcons.appendChild(icon);\n    }\n    \n    if (span > 10) {\n        const more = document.createElement('span');\n        more.className = 'employee-icon';\n        more.textContent = '...';\n        employeeIcons.appendChild(more);\n    }\n}\n\n\/\/ Initialize calculator\ndocument.addEventListener('DOMContentLoaded', function() {\n    calculateSpan();\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Successor Calculator for WordPress -->\n<div class=\"wp-successor-calculator\">\n    <div class=\"wp-formula-explanation\">\n        <h3>Ready Successors Ratio Formula<\/h3>\n        <p><strong>Formula:<\/strong> (Number of Ready Successors \/ Number of Critical Positions) \u00d7 100<\/p>\n        <p><strong>Purpose:<\/strong> This ratio helps organizations measure their succession planning effectiveness by calculating the percentage of critical positions that have identified ready successors.<\/p>\n        <ul>\n            <li><strong>Ready Successors:<\/strong> Employees who have completed necessary training and are prepared to step into critical roles<\/li>\n            <li><strong>Critical Positions:<\/strong> Roles essential to business continuity requiring specialized skills or experience<\/li>\n        <\/ul>\n    <\/div>\n    \n    <div class=\"wp-calculator-section\">\n        <div class=\"wp-input-group\">\n            <label for=\"wp-readySuccessors\">Number of Ready Successors:<\/label>\n            <input type=\"number\" id=\"wp-readySuccessors\" min=\"0\" placeholder=\"Enter number of ready successors\">\n        <\/div>\n        \n        <div class=\"wp-input-group\">\n            <label for=\"wp-criticalPositions\">Number of Critical Positions:<\/label>\n            <input type=\"number\" id=\"wp-criticalPositions\" min=\"1\" placeholder=\"Enter number of critical positions\">\n        <\/div>\n        \n        <div id=\"wp-warningMessage\" class=\"wp-warning-message\"><\/div>\n        <div id=\"wp-errorMessage\" class=\"wp-error-message\"><\/div>\n        \n        <button id=\"wp-calculateButton\" class=\"wp-calculate-button\">Calculate Ratio<\/button>\n        \n        <div class=\"wp-results-grid\">\n            <div class=\"wp-metric-card\">\n                <div class=\"wp-metric-title\">Ready Successors<\/div>\n                <div id=\"wp-successorsMetric\" class=\"wp-metric-value\">0<\/div>\n            <\/div>\n            <div class=\"wp-metric-card\">\n                <div class=\"wp-metric-title\">Critical Positions<\/div>\n                <div id=\"wp-positionsMetric\" class=\"wp-metric-value\">0<\/div>\n            <\/div>\n            <div class=\"wp-metric-card\">\n                <div class=\"wp-metric-title\">Coverage Ratio<\/div>\n                <div id=\"wp-ratioMetric\" class=\"wp-metric-value\">0%<\/div>\n            <\/div>\n        <\/div>\n        \n        <div class=\"wp-coverage-bar\">\n            <div id=\"wp-coverageProgress\" class=\"wp-coverage-progress\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<style>\n    .wp-successor-calculator {\n        max-width: 800px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .wp-formula-explanation {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .wp-calculator-section {\n        background-color: #ffffff;\n        padding: 20px;\n        border-radius: 8px;\n        box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n    }\n    \n    .wp-input-group {\n        margin-bottom: 20px;\n    }\n    \n    .wp-input-group label {\n        display: block;\n        margin-bottom: 8px;\n        font-weight: 500;\n        color: #333;\n    }\n    \n    .wp-input-group input {\n        width: 100%;\n        padding: 10px;\n        border: 2px solid #ddd;\n        border-radius: 4px;\n        font-size: 16px;\n    }\n    \n    .wp-warning-message {\n        color: #856404;\n        background-color: #fff3cd;\n        border: 1px solid #ffeeba;\n        padding: 10px;\n        margin: 10px 0;\n        border-radius: 4px;\n        display: none;\n    }\n    \n    .wp-error-message {\n        color: #721c24;\n        background-color: #f8d7da;\n        border: 1px solid #f5c6cb;\n        padding: 10px;\n        margin: 10px 0;\n        border-radius: 4px;\n        display: none;\n    }\n    \n    .wp-calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 12px 24px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 16px;\n    }\n    \n    .wp-results-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 20px;\n        margin-top: 20px;\n    }\n    \n    .wp-metric-card {\n        background-color: #f8f9fa;\n        padding: 15px;\n        border-radius: 8px;\n        text-align: center;\n    }\n    \n    .wp-metric-title {\n        font-size: 14px;\n        color: #666;\n        margin-bottom: 8px;\n    }\n    \n    .wp-metric-value {\n        font-size: 24px;\n        font-weight: bold;\n        color: #0073aa;\n    }\n    \n    .wp-coverage-bar {\n        height: 20px;\n        background-color: #e9ecef;\n        border-radius: 10px;\n        margin-top: 20px;\n        overflow: hidden;\n    }\n    \n    .wp-coverage-progress {\n        height: 100%;\n        background-color: #28a745;\n        width: 0%;\n        transition: width 0.5s ease-in-out;\n    }\n<\/style>\n\n<!-- Add this at the bottom of your page -->\n<script>\njQuery(document).ready(function($) {\n    function calculateRatio() {\n        const successors = parseInt($('#wp-readySuccessors').val()) || 0;\n        const positions = parseInt($('#wp-criticalPositions').val()) || 0;\n        \n        const $warningMsg = $('#wp-warningMessage');\n        const $errorMsg = $('#wp-errorMessage');\n        \n        \/\/ Reset messages\n        $warningMsg.hide();\n        $errorMsg.hide();\n        \n        \/\/ Validation\n        if (successors === 0 && positions === 0) {\n            $errorMsg.text('Please enter values for both fields').show();\n            return;\n        }\n        \n        if (positions === 0) {\n            $errorMsg.text('Number of critical positions must be greater than 0').show();\n            return;\n        }\n        \n        if (successors > positions * 3) {\n            $warningMsg.text('The number of ready successors seems unusually high compared to critical positions. Please verify your input.').show();\n        }\n        \n        \/\/ Calculate ratio\n        const ratio = (successors \/ positions) * 100;\n        \n        \/\/ Update metrics\n        $('#wp-successorsMetric').text(successors);\n        $('#wp-positionsMetric').text(positions);\n        $('#wp-ratioMetric').text(ratio.toFixed(1) + '%');\n        \n        \/\/ Update progress bar\n        const $progress = $('#wp-coverageProgress');\n        $progress.css('width', Math.min(100, ratio) + '%');\n        \n        \/\/ Color coding for progress bar\n        if (ratio < 50) {\n            $progress.css('backgroundColor', '#dc3545');\n        } else if (ratio < 80) {\n            $progress.css('backgroundColor', '#ffc107');\n        } else {\n            $progress.css('backgroundColor', '#28a745');\n        }\n    }\n    \n    \/\/ Bind click event using jQuery\n    $('#wp-calculateButton').on('click', calculateRatio);\n    \n    \/\/ Initialize calculator\n    calculateRatio();\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .participation-calculator {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .main-formula {\n        font-size: 1.2em;\n        padding: 15px;\n        background-color: #ffffff;\n        border-radius: 4px;\n        margin: 15px 0;\n        text-align: center;\n        font-family: monospace;\n    }\n    \n    .formula-breakdown {\n        background-color: #ffffff;\n        padding: 20px;\n        border-radius: 4px;\n        margin-top: 15px;\n    }\n    \n    .example-calculation {\n        background-color: #f8f9fa;\n        padding: 20px;\n        border-radius: 4px;\n        margin: 20px 0;\n    }\n    \n    .calculator-section {\n        background-color: #f8f9fa;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 20px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        max-width: 200px;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .progress-bar {\n        width: 100%;\n        height: 30px;\n        background-color: #f0f0f0;\n        border-radius: 15px;\n        overflow: hidden;\n        margin: 20px 0;\n    }\n    \n    .rate-indicator {\n        display: inline-block;\n        padding: 4px 8px;\n        border-radius: 4px;\n        color: white;\n        font-size: 0.9em;\n        margin-left: 10px;\n    }\n    \n    .rate-excellent {\n        background-color: #00C851;\n    }\n    \n    .rate-good {\n        background-color: #33b5e5;\n    }\n    \n    .rate-moderate {\n        background-color: #ffbb33;\n    }\n    \n    .rate-poor {\n        background-color: #ff4444;\n    }\n    \n    .rate-scale {\n        display: flex;\n        justify-content: space-between;\n        margin: 20px 0;\n        padding: 10px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .rate-level {\n        text-align: center;\n        padding: 10px;\n        border-radius: 4px;\n        flex: 1;\n        margin: 0 5px;\n    }\n    \n    .rate-level h5 {\n        margin: 0 0 5px 0;\n        color: #333;\n    }\n    \n    .rate-level p {\n        margin: 0;\n        font-size: 0.9em;\n        color: #666;\n    }\n    \n    .progress-fill {\n        height: 100%;\n        transition: width 0.5s ease-in-out, background 0.3s ease;\n        position: relative;\n    }\n    \n    .progress-fill-good {\n        background: linear-gradient(90deg, #00C851 0%, #00E676 100%);\n    }\n    \n    .progress-fill-moderate {\n        background: linear-gradient(90deg, #ffbb33 0%, #FFC107 100%);\n    }\n    \n    .progress-fill-poor {\n        background: linear-gradient(90deg, #ff4444 0%, #FF5252 100%);\n    }\n    \n    .historical-chart {\n        height: 200px;\n        margin: 20px 0;\n        display: flex;\n        align-items: flex-end;\n        gap: 10px;\n    }\n    \n    .chart-bar {\n        flex: 1;\n        background: linear-gradient(180deg, #4CAF50 0%, #8BC34A 100%);\n        border-radius: 4px 4px 0 0;\n        transition: height 0.3s ease;\n        position: relative;\n        min-width: 30px;\n    }\n    \n    .chart-bar::after {\n        content: attr(data-value);\n        position: absolute;\n        top: -25px;\n        left: 50%;\n        transform: translateX(-50%);\n        font-size: 12px;\n    }\n    \n    .interpretation {\n        margin-top: 15px;\n        padding: 15px;\n        border-radius: 4px;\n    }\n    \n    .benchmark-indicator {\n        display: flex;\n        align-items: center;\n        margin-top: 10px;\n        padding: 10px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n    }\n    \n    .benchmark-marker {\n        position: absolute;\n        width: 2px;\n        height: 30px;\n        background-color: #ff4444;\n        transition: left 0.3s ease;\n    }\n    \n    .benchmark-label {\n        position: absolute;\n        top: -25px;\n        left: 50%;\n        transform: translateX(-50%);\n        font-size: 12px;\n        color: #ff4444;\n        white-space: nowrap;\n    }\n\n    @media (max-width: 768px) {\n        .participation-calculator {\n            padding: 10px;\n        }\n        \n        .input-group input {\n            max-width: 100%;\n        }\n    }\n<\/style>\n\n<div class=\"participation-calculator\">\n    <h2>Employee Participation Rate Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Understanding the Formula<\/h3>\n        <div class=\"main-formula\">\n            Participation Rate = (Number of Participants \u00f7 Total Eligible Employees) \u00d7 100\n        <\/div>\n        \n        <div class=\"formula-breakdown\">\n            <h4>Components:<\/h4>\n            <ul>\n                <li><strong>Number of Participants:<\/strong> Active participants in the program\/initiative<\/li>\n                <li><strong>Total Eligible Employees:<\/strong> All employees who could potentially participate<\/li>\n                <li><strong>Multiplier:<\/strong> 100 (to convert to percentage)<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Calculator<\/h3>\n        \n        <div class=\"input-group\">\n            <label for=\"participants\">Number of Active Participants:<\/label>\n            <input type=\"number\" id=\"participants\" min=\"0\" value=\"0\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"eligible\">Total Eligible Employees:<\/label>\n            <input type=\"number\" id=\"eligible\" min=\"0\" value=\"0\">\n        <\/div>\n        \n        <button onclick=\"calculateParticipation()\" class=\"calculate-button\">Calculate Rate<\/button>\n        \n        <div class=\"result-display\">\n            <h4>Current Participation Rate:<\/h4>\n            <div style=\"display: flex; align-items: center;\">\n                <div id=\"rate-result\" style=\"font-size: 24px; font-weight: bold; margin: 10px 0; transition: color 0.3s ease;\">-<\/div>\n                <div id=\"rate-indicator\" class=\"rate-indicator\"><\/div>\n            <\/div>\n            \n            <div class=\"rate-scale\">\n                <div class=\"rate-level\" style=\"background-color: #ffebee;\">\n                    <h5>Poor<\/h5>\n                    <p>0-40%<\/p>\n                <\/div>\n                <div class=\"rate-level\" style=\"background-color: #fff3e0;\">\n                    <h5>Moderate<\/h5>\n                    <p>41-64%<\/p>\n                <\/div>\n                <div class=\"rate-level\" style=\"background-color: #e8f5e9;\">\n                    <h5>Good<\/h5>\n                    <p>65-79%<\/p>\n                <\/div>\n                <div class=\"rate-level\" style=\"background-color: #e0f7fa;\">\n                    <h5>Excellent<\/h5>\n                    <p>80-100%<\/p>\n                <\/div>\n            <\/div>\n            \n            <div class=\"progress-bar\">\n                <div id=\"progress-fill\" class=\"progress-fill\">\n                    <div class=\"benchmark-marker\">\n                        <div class=\"benchmark-label\">Industry Avg: 65%<\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"historical-chart\" id=\"historical-chart\">\n                <!-- Historical data visualization will be added here -->\n            <\/div>\n            \n            <div class=\"interpretation\" id=\"interpretation\">\n                <!-- Interpretation will be added here -->\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nlet historicalRates = [];\n\nfunction calculateParticipation() {\n    const participants = parseInt(document.getElementById('participants').value) || 0;\n    const eligible = parseInt(document.getElementById('eligible').value) || 0;\n    \n    if (eligible === 0) {\n        document.getElementById('rate-result').textContent = '-';\n        document.getElementById('progress-fill').style.width = '0%';\n        document.getElementById('interpretation').innerHTML = '<p>Please enter valid numbers to calculate the participation rate.<\/p>';\n        return;\n    }\n    \n    const rate = (participants \/ eligible) * 100;\n    const roundedRate = Math.min(Math.round(rate * 10) \/ 10, 100);\n    \n    \/\/ Update display\n    const resultElement = document.getElementById('rate-result');\n    resultElement.textContent = roundedRate.toFixed(1) + '%';\n    \n    \/\/ Color code the result\n    if (roundedRate >= 65) {\n        resultElement.style.color = '#00C851'; \/\/ Green for good\n    } else if (roundedRate >= 40) {\n        resultElement.style.color = '#ffbb33'; \/\/ Yellow for moderate\n    } else {\n        resultElement.style.color = '#ff4444'; \/\/ Red for poor\n    }\n    const progressFill = document.getElementById('progress-fill');\n    progressFill.style.width = roundedRate + '%';\n    \n    \/\/ Update progress bar color based on rate\n    progressFill.className = 'progress-fill';\n    if (roundedRate >= 65) {\n        progressFill.classList.add('progress-fill-good');\n    } else if (roundedRate >= 40) {\n        progressFill.classList.add('progress-fill-moderate');\n    } else {\n        progressFill.classList.add('progress-fill-poor');\n    }\n    \n    \/\/ Add to historical data\n    historicalRates.push(roundedRate);\n    if (historicalRates.length > 6) {\n        historicalRates.shift();\n    }\n    \n    updateHistoricalChart();\n    updateInterpretation(roundedRate);\n}\n\nfunction updateHistoricalChart() {\n    const chart = document.getElementById('historical-chart');\n    chart.innerHTML = '';\n    \n    historicalRates.forEach((rate, index) => {\n        const bar = document.createElement('div');\n        bar.className = 'chart-bar';\n        bar.style.height = rate + '%';\n        bar.setAttribute('data-value', rate.toFixed(1) + '%');\n        chart.appendChild(bar);\n    });\n}\n\nfunction updateInterpretation(rate) {\n    const interpretation = document.getElementById('interpretation');\n    const rateIndicator = document.getElementById('rate-indicator');\n    let message = '<h4>Analysis<\/h4>';\n    \n    if (rate >= 80) {\n        message += `\n            <p><strong>Excellent Participation Rate!<\/strong><\/p>\n            <ul>\n                <li>Outstanding employee engagement levels<\/li>\n                <li>Strong organizational culture and communication<\/li>\n                <li>Effective program implementation and management<\/li>\n                <li>Suggests high employee satisfaction and buy-in<\/li>\n                <li>Recommended: Document successful strategies for future reference<\/li>\n            <\/ul>`;\n        rateIndicator.className = 'rate-indicator rate-excellent';\n        rateIndicator.textContent = 'EXCELLENT';\n    } else if (rate >= 65) {\n        message += `\n            <p><strong>Good Participation Rate<\/strong><\/p>\n            <ul>\n                <li>Above industry average performance<\/li>\n                <li>Healthy employee engagement<\/li>\n                <li>Room for optimization to reach excellence<\/li>\n                <li>Solid foundation for growth<\/li>\n                <li>Recommended: Focus on targeted improvements<\/li>\n            <\/ul>`;\n        rateIndicator.className = 'rate-indicator rate-good';\n        rateIndicator.textContent = 'GOOD';\n    } else if (rate >= 40) {\n        message += `\n            <p><strong>Moderate Participation Rate<\/strong><\/p>\n            <ul>\n                <li>Below industry average performance<\/li>\n                <li>Significant room for improvement<\/li>\n                <li>May indicate communication or engagement barriers<\/li>\n                <li>Opportunity for strategic interventions<\/li>\n                <li>Recommended: Conduct employee feedback survey<\/li>\n            <\/ul>`;\n        rateIndicator.className = 'rate-indicator rate-moderate';\n        rateIndicator.textContent = 'MODERATE';\n    } else {\n        message += `\n            <p><strong>Poor Participation Rate<\/strong><\/p>\n            <ul>\n                <li>Critical attention required<\/li>\n                <li>Potential systemic issues in program implementation<\/li>\n                <li>May indicate low employee morale or awareness<\/li>\n                <li>Risk of program failure without intervention<\/li>\n                <li>Recommended: Immediate review and action plan needed<\/li>\n            <\/ul>`;\n        rateIndicator.className = 'rate-indicator rate-poor';\n        rateIndicator.textContent = 'POOR';\n    }\n    \n    \/\/ Add benchmark comparison\n    const benchmarkDiff = rate - 65;\n    message += `<div class=\"benchmark-indicator\">\n        <strong>Benchmark Comparison:<\/strong> \n        ${benchmarkDiff >= 0 \n            ? `+${benchmarkDiff.toFixed(1)}% above` \n            : `${benchmarkDiff.toFixed(1)}% below`} \n        industry average of 65%\n    <\/div>`;\n    \n    interpretation.innerHTML = message;\n}\n\n\/\/ Initialize with empty state\ndocument.getElementById('rate-result').textContent = '-';\ndocument.getElementById('progress-fill').style.width = '0%';\ndocument.getElementById('interpretation').innerHTML = '<p>Enter the number of participants and eligible employees to calculate the participation rate.<\/p>';\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .nps-calculator {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .formula-explanation {\n        margin-top: 15px;\n    }\n    \n    .main-formula {\n        font-size: 1.2em;\n        padding: 15px;\n        background-color: #ffffff;\n        border-radius: 4px;\n        margin: 15px 0;\n        text-align: center;\n    }\n    \n    .formula-breakdown {\n        background-color: #ffffff;\n        padding: 20px;\n        border-radius: 4px;\n        margin-top: 15px;\n    }\n    \n    .component-explanation {\n        margin: 15px 0;\n    }\n    \n    .component-explanation ol {\n        padding-left: 20px;\n    }\n    \n    .component-explanation li {\n        margin-bottom: 15px;\n    }\n    \n    .component-explanation p {\n        margin: 5px 0;\n        color: #555;\n    }\n    \n    .example-calculation {\n        background-color: #f8f9fa;\n        padding: 20px;\n        border-radius: 4px;\n        margin: 20px 0;\n    }\n    \n    .calculation-steps {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #ffffff;\n        border-radius: 4px;\n    }\n    \n    .calculation-steps p {\n        margin: 5px 0;\n    }\n    \n    .calculation-steps strong {\n        color: #0073aa;\n    }\n    \n    .score-range-info {\n        margin-top: 20px;\n    }\n    \n    .score-range-info ul {\n        list-style-type: none;\n        padding-left: 0;\n    }\n    \n    .score-range-info li {\n        margin-bottom: 8px;\n        padding-left: 20px;\n        position: relative;\n    }\n    \n    .score-range-info li:before {\n        content: \"\u2022\";\n        color: #0073aa;\n        font-weight: bold;\n        position: absolute;\n        left: 0;\n    }\n    \n    .calculator-section {\n        background-color: #f8f9fa;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 20px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        max-width: 200px;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .nps-gauge {\n        position: relative;\n        width: 100%;\n        height: 40px;\n        background: linear-gradient(to right, #ff4444 0%, #ffbb33 50%, #00C851 100%);\n        border-radius: 20px;\n        margin: 20px 0;\n    }\n    \n    .nps-marker {\n        position: absolute;\n        width: 4px;\n        height: 40px;\n        background-color: #333;\n        transform: translateX(-50%);\n    }\n    \n    .nps-interpretation {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n    }\n    \n    .distribution-chart {\n        height: 200px;\n        margin: 20px 0;\n        display: flex;\n        align-items: flex-end;\n        gap: 2px;\n    }\n    \n    .distribution-bar {\n        flex: 1;\n        background-color: #ddd;\n        transition: height 0.3s ease;\n    }\n    \n    @media (max-width: 768px) {\n        .score-ranges {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"nps-calculator\">\n    <h2>Net Promoter Score (NPS) Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Understanding NPS Formula<\/h3>\n        <div class=\"formula-explanation\">\n            <p class=\"main-formula\"><code>NPS = % Promoters - % Detractors<\/code><\/p>\n            \n            <div class=\"formula-breakdown\">\n                <h4>Formula Components:<\/h4>\n                <div class=\"component-explanation\">\n                    <ol>\n                        <li>\n                            <strong>Promoters (9-10)<\/strong>\n                            <p>Calculate % of Promoters = (Number of 9-10 responses \u00f7 Total responses) \u00d7 100<\/p>\n                        <\/li>\n                        <li>\n                            <strong>Passives (7-8)<\/strong>\n                            <p>Not used in final calculation but included in total responses<\/p>\n                        <\/li>\n                        <li>\n                            <strong>Detractors (0-6)<\/strong>\n                            <p>Calculate % of Detractors = (Number of 0-6 responses \u00f7 Total responses) \u00d7 100<\/p>\n                        <\/li>\n                    <\/ol>\n                <\/div>\n\n                <div class=\"example-calculation\">\n                    <h4>Example Calculation:<\/h4>\n                    <p>Let's say you have:<\/p>\n                    <ul>\n                        <li>150 Promoters (9-10)<\/li>\n                        <li>80 Passives (7-8)<\/li>\n                        <li>70 Detractors (0-6)<\/li>\n                        <li>Total: 300 responses<\/li>\n                    <\/ul>\n                    \n                    <div class=\"calculation-steps\">\n                        <p><strong>Step 1:<\/strong> Calculate % of Promoters<\/p>\n                        <p>150 \u00f7 300 \u00d7 100 = 50% Promoters<\/p>\n                        \n                        <p><strong>Step 2:<\/strong> Calculate % of Detractors<\/p>\n                        <p>70 \u00f7 300 \u00d7 100 = 23.33% Detractors<\/p>\n                        \n                        <p><strong>Step 3:<\/strong> Calculate NPS<\/p>\n                        <p>50% - 23.33% = +26.67<\/p>\n                        <p>Round to nearest whole number: <strong>NPS = +27<\/strong><\/p>\n                    <\/div>\n                <\/div>\n                \n                <div class=\"score-range-info\">\n                    <h4>Important Notes:<\/h4>\n                    <ul>\n                        <li>NPS ranges from -100 to +100<\/li>\n                        <li>Positive score means more promoters than detractors<\/li>\n                        <li>Negative score means more detractors than promoters<\/li>\n                        <li>Final score is expressed as a whole number<\/li>\n                        <li>Passives impact the percentage base but not the final calculation<\/li>\n                    <\/ul>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Response Inputs<\/h3>\n        \n        <div class=\"input-group\">\n            <label for=\"promoters\">Number of Promoters (scores 9-10):<\/label>\n            <input type=\"number\" id=\"promoters\" min=\"0\" value=\"0\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"passives\">Number of Passives (scores 7-8):<\/label>\n            <input type=\"number\" id=\"passives\" min=\"0\" value=\"0\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"detractors\">Number of Detractors (scores 0-6):<\/label>\n            <input type=\"number\" id=\"detractors\" min=\"0\" value=\"0\">\n        <\/div>\n        \n        <button onclick=\"calculateNPS()\" class=\"calculate-button\">Calculate NPS<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Responses<\/div>\n                    <div id=\"totalResponses\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">NPS Score<\/div>\n                    <div id=\"npsScore\" class=\"metric-value\">0<\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"distribution-chart\" id=\"distributionChart\">\n                <!-- Bars will be added dynamically -->\n            <\/div>\n            \n            <div class=\"nps-gauge\">\n                <div id=\"npsMarker\" class=\"nps-marker\"><\/div>\n            <\/div>\n            \n            <div class=\"nps-interpretation\" id=\"npsInterpretation\">\n                <!-- Interpretation will be added here -->\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateNPS() {\n    \/\/ Get input values\n    const promoters = parseInt(document.getElementById('promoters').value) || 0;\n    const passives = parseInt(document.getElementById('passives').value) || 0;\n    const detractors = parseInt(document.getElementById('detractors').value) || 0;\n    \n    \/\/ Calculate total responses\n    const total = promoters + passives + detractors;\n    \n    if (total === 0) {\n        document.getElementById('totalResponses').textContent = '0';\n        document.getElementById('npsScore').textContent = '-';\n        document.getElementById('npsInterpretation').innerHTML = '<h4>Getting Started<\/h4><p>Enter the number of responses in each category above to calculate your NPS score.<\/p>';\n        return;\n    }\n    \n    \/\/ Calculate percentages\n    const promotersPercent = (promoters \/ total) * 100;\n    const detractorsPercent = (detractors \/ total) * 100;\n    \n    \/\/ Calculate NPS\n    const nps = Math.round(promotersPercent - detractorsPercent);\n    \n    \/\/ Update display\n    document.getElementById('totalResponses').textContent = total;\n    document.getElementById('npsScore').textContent = nps > 0 ? `+${nps}` : nps;\n    \n    \/\/ Update NPS marker position\n    const markerPosition = ((nps + 100) \/ 200) * 100; \/\/ Convert -100 to +100 range to 0-100%\n    document.getElementById('npsMarker').style.left = `${markerPosition}%`;\n    \n    \/\/ Update distribution chart\n    updateDistributionChart(promoters, passives, detractors, total);\n    \n    \/\/ Update interpretation\n    updateInterpretation(nps);\n}\n\nfunction updateDistributionChart(promoters, passives, detractors, total) {\n    const chart = document.getElementById('distributionChart');\n    chart.innerHTML = '';\n    \n    \/\/ Create bars for scores 0-10\n    for (let i = 0; i <= 10; i++) {\n        const bar = document.createElement('div');\n        bar.className = 'distribution-bar';\n        \n        \/\/ Determine count based on score range\n        let count = 0;\n        if (i <= 6) count = (detractors \/ 7);\n        else if (i <= 8) count = (passives \/ 2);\n        else count = (promoters \/ 2);\n        \n        const height = total > 0 ? (count \/ total) * 100 : 0;\n        bar.style.height = `${height * 2}%`; \/\/ Multiply by 2 for better visibility\n        \n        \/\/ Set color based on category\n        if (i <= 6) bar.style.backgroundColor = '#ffebee';\n        else if (i <= 8) bar.style.backgroundColor = '#fff3e0';\n        else bar.style.backgroundColor = '#e8f5e9';\n        \n        chart.appendChild(bar);\n    }\n}\n\nfunction updateInterpretation(nps) {\n    const interpretation = document.getElementById('npsInterpretation');\n    let message = '<h4>Score Interpretation<\/h4>';\n    \n    if (nps >= 70) {\n        message += '<p>Excellent! This is a world-class NPS score indicating extremely high customer loyalty.<\/p>';\n    } else if (nps >= 30) {\n        message += '<p>Good! This is a healthy NPS score above the global average.<\/p>';\n    } else if (nps >= 0) {\n        message += '<p>Fair. There\\'s room for improvement but you have more promoters than detractors.<\/p>';\n    } else {\n        message += '<p>Needs improvement. Focus on addressing customer concerns to reduce the number of detractors.<\/p>';\n    }\n    \n    interpretation.innerHTML = message;\n}\n\n\/\/ Set initial state\ndocument.getElementById('totalResponses').textContent = '0';\ndocument.getElementById('npsScore').textContent = '-';\ndocument.getElementById('npsInterpretation').innerHTML = '<h4>Getting Started<\/h4><p>Enter the number of responses in each category above to calculate your NPS score.<\/p>';\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .satisfaction-calculator {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .formula-explanation {\n        margin-top: 15px;\n    }\n    \n    .main-formula {\n        font-size: 1.2em;\n        padding: 15px;\n        background-color: #ffffff;\n        border-radius: 4px;\n        margin: 15px 0;\n        text-align: center;\n    }\n    \n    .formula-breakdown {\n        background-color: #ffffff;\n        padding: 15px;\n        border-radius: 4px;\n        margin-top: 15px;\n    }\n    \n    .formula-breakdown h4 {\n        color: #0073aa;\n        margin-bottom: 10px;\n    }\n    \n    .formula-breakdown ul {\n        list-style-type: none;\n        padding-left: 0;\n    }\n    \n    .formula-breakdown ul li {\n        margin-bottom: 8px;\n        padding-left: 20px;\n        position: relative;\n    }\n    \n    .formula-breakdown ul li:before {\n        content: \"\u2022\";\n        color: #0073aa;\n        font-weight: bold;\n        position: absolute;\n        left: 0;\n    }\n    \n    .example-calculation {\n        background-color: #f8f9fa;\n        padding: 15px;\n        border-radius: 4px;\n        margin-top: 15px;\n    }\n    \n    .example-calculation ol {\n        margin-top: 10px;\n        padding-left: 20px;\n    }\n    \n    .example-calculation ol li {\n        margin-bottom: 5px;\n    }\n    \n    .calculator-section {\n        background-color: #f8f9fa;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 20px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .rating-input {\n        display: flex;\n        align-items: center;\n        gap: 10px;\n        margin-bottom: 10px;\n    }\n    \n    .rating-input input {\n        width: 60px;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .rating-input button {\n        background-color: #dc3545;\n        color: white;\n        border: none;\n        border-radius: 4px;\n        padding: 8px 12px;\n        cursor: pointer;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .add-rating-button {\n        background-color: #28a745;\n        color: white;\n        padding: 8px 16px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-bottom: 15px;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n        color: #0073aa;\n    }\n    \n    #satisfactionTrend {\n        width: 100%;\n        height: 200px;\n        margin-top: 20px;\n    }\n    \n    .weight-toggle {\n        margin: 10px 0;\n    }\n    \n    .benchmark-section {\n        margin-top: 15px;\n        padding: 10px;\n        background-color: #e9ecef;\n        border-radius: 4px;\n    }\n    \n    .rating-scale-selector {\n        margin-bottom: 15px;\n    }\n<\/style>\n\n<div class=\"satisfaction-calculator\">\n    <h2>Employee Satisfaction Index Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Understanding the Formula<\/h3>\n        <div class=\"formula-explanation\">\n            <p class=\"main-formula\"><code>(Sum of satisfaction scores \/ Total possible score) \u00d7 100<\/code><\/p>\n            \n            <div class=\"formula-breakdown\">\n                <h4>Components:<\/h4>\n                <ul>\n                    <li><strong>Sum of satisfaction scores:<\/strong> Total of all individual ratings<\/li>\n                    <li><strong>Total possible score:<\/strong> Maximum rating \u00d7 Number of responses<\/li>\n                    <li><strong>Multiplier:<\/strong> 100 (converts to percentage)<\/li>\n                <\/ul>\n                \n                <div class=\"example-calculation\">\n                    <h4>Example Calculation:<\/h4>\n                    <p>For 5 responses on a 1-5 scale with ratings: 4, 3, 5, 4, 4<\/p>\n                    <ol>\n                        <li>Sum of scores = 4 + 3 + 5 + 4 + 4 = 20<\/li>\n                        <li>Total possible = 5 responses \u00d7 5 (max rating) = 25<\/li>\n                        <li>Final calculation = (20 \/ 25) \u00d7 100 = 80%<\/li>\n                    <\/ol>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <div class=\"rating-scale-selector\">\n            <label for=\"ratingScale\">Select Rating Scale:<\/label>\n            <select id=\"ratingScale\" onchange=\"updateRatingScale()\">\n                <option value=\"5\">1-5 Scale<\/option>\n                <option value=\"10\">1-10 Scale<\/option>\n                <option value=\"7\">1-7 Scale<\/option>\n            <\/select>\n        <\/div>\n        \n        <div class=\"weight-toggle\">\n            <input type=\"checkbox\" id=\"useWeights\" onchange=\"toggleWeights()\">\n            <label for=\"useWeights\">Use response weighting<\/label>\n        <\/div>\n        \n        <div id=\"ratingsContainer\">\n            <!-- Ratings will be added here dynamically -->\n        <\/div>\n        \n        <button onclick=\"addRating()\" class=\"add-rating-button\">+ Add Rating<\/button>\n        \n        <button onclick=\"calculateSatisfaction()\" class=\"calculate-button\">Calculate Satisfaction Index<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Responses<\/div>\n                    <div id=\"totalResponses\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Average Rating<\/div>\n                    <div id=\"averageRating\" class=\"metric-value\">0.0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Satisfaction Index<\/div>\n                    <div id=\"satisfactionIndex\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"benchmark-section\">\n                <h4>Benchmark Analysis<\/h4>\n                <p id=\"benchmarkAnalysis\"><\/p>\n            <\/div>\n            \n            <canvas id=\"satisfactionTrend\"><\/canvas>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nlet ratingHistory = [];\nlet useWeighting = false;\n\nfunction updateRatingScale() {\n    const scale = parseInt(document.getElementById('ratingScale').value);\n    const container = document.getElementById('ratingsContainer');\n    container.innerHTML = '';\n    addRating(); \/\/ Add first rating input\n}\n\nfunction toggleWeights() {\n    useWeighting = document.getElementById('useWeights').checked;\n    const container = document.getElementById('ratingsContainer');\n    const ratings = container.getElementsByClassName('rating-input');\n    \n    Array.from(ratings).forEach(rating => {\n        const weightInput = rating.querySelector('.weight-input');\n        if (weightInput) {\n            weightInput.style.display = useWeighting ? 'block' : 'none';\n        }\n    });\n}\n\nfunction addRating() {\n    const container = document.getElementById('ratingsContainer');\n    const scale = parseInt(document.getElementById('ratingScale').value);\n    \n    const ratingDiv = document.createElement('div');\n    ratingDiv.className = 'rating-input';\n    \n    const ratingInput = document.createElement('input');\n    ratingInput.type = 'number';\n    ratingInput.min = '1';\n    ratingInput.max = scale;\n    ratingInput.placeholder = `1-${scale}`;\n    ratingInput.required = true;\n    \n    const weightInput = document.createElement('input');\n    weightInput.type = 'number';\n    weightInput.min = '1';\n    weightInput.max = '5';\n    weightInput.value = '1';\n    weightInput.placeholder = 'Weight';\n    weightInput.className = 'weight-input';\n    weightInput.style.display = useWeighting ? 'block' : 'none';\n    \n    const removeButton = document.createElement('button');\n    removeButton.textContent = '\u00d7';\n    removeButton.onclick = () => container.removeChild(ratingDiv);\n    \n    ratingDiv.appendChild(ratingInput);\n    ratingDiv.appendChild(weightInput);\n    ratingDiv.appendChild(removeButton);\n    container.appendChild(ratingDiv);\n}\n\nfunction calculateSatisfaction() {\n    const container = document.getElementById('ratingsContainer');\n    const ratings = container.getElementsByClassName('rating-input');\n    const scale = parseInt(document.getElementById('ratingScale').value);\n    \n    let sumScores = 0;\n    let totalPossible = 0;\n    let totalWeights = 0;\n    \n    Array.from(ratings).forEach(rating => {\n        const score = parseInt(rating.querySelector('input[type=\"number\"]').value);\n        const weight = useWeighting ? parseInt(rating.querySelector('.weight-input').value) : 1;\n        \n        if (score && weight) {\n            sumScores += score * weight;\n            totalPossible += scale * weight;\n            totalWeights += weight;\n        }\n    });\n    \n    if (totalPossible === 0) {\n        alert('Please enter valid ratings');\n        return;\n    }\n    \n    const satisfactionIndex = (sumScores \/ totalPossible) * 100;\n    const averageRating = sumScores \/ totalWeights;\n    \n    \/\/ Update display\n    document.getElementById('totalResponses').textContent = ratings.length;\n    document.getElementById('averageRating').textContent = averageRating.toFixed(1);\n    document.getElementById('satisfactionIndex').textContent = `${satisfactionIndex.toFixed(1)}%`;\n    \n    \/\/ Update benchmark analysis\n    updateBenchmarkAnalysis(satisfactionIndex);\n    \n    \/\/ Update history and trend\n    ratingHistory.push(satisfactionIndex);\n    if (ratingHistory.length > 10) ratingHistory.shift();\n    updateTrendChart();\n}\n\nfunction updateBenchmarkAnalysis(score) {\n    let analysis = '';\n    if (score >= 80) {\n        analysis = 'Excellent! Above industry benchmark (75%)';\n    } else if (score >= 60) {\n        analysis = 'Good. Within normal range (60-75%)';\n    } else {\n        analysis = 'Below average. Improvement needed (< 60%)';\n    }\n    document.getElementById('benchmarkAnalysis').textContent = analysis;\n}\n\nfunction updateTrendChart() {\n    const ctx = document.getElementById('satisfactionTrend').getContext('2d');\n    const labels = ratingHistory.map((_, i) => `Calc ${i + 1}`);\n    \n    \/\/ Clear previous chart\n    ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);\n    \n    \/\/ Draw new chart\n    ctx.beginPath();\n    ctx.strokeStyle = '#0073aa';\n    ctx.lineWidth = 2;\n    \n    const maxScore = 100;\n    const width = ctx.canvas.width;\n    const height = ctx.canvas.height;\n    const stepX = width \/ (ratingHistory.length - 1);\n    \n    ratingHistory.forEach((score, i) => {\n        const x = i * stepX;\n        const y = height - (score \/ maxScore) * height;\n        \n        if (i === 0) {\n            ctx.moveTo(x, y);\n        } else {\n            ctx.lineTo(x, y);\n        }\n    });\n    \n    ctx.stroke();\n}\n\n\/\/ Initialize\naddRating();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Productivity Calculator for WordPress Custom HTML Module -->\n<!-- Chart.js Import -->\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/3.7.0\/chart.min.js\"><\/script>\n\n<!-- Productivity Calculator HTML -->\n<div class=\"productivity-calculator-wrapper\">\n    <style>\n        .productivity-calculator-wrapper {\n            max-width: 1200px;\n            margin: 0 auto;\n            padding: 20px;\n            font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n            background: #fff;\n            border-radius: 8px;\n            box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n        }\n\n        .calculator-title {\n            text-align: center;\n            color: #333;\n            margin-bottom: 30px;\n            font-size: 2.5rem;\n            font-weight: 600;\n        }\n\n        .tab-navigation {\n            display: flex;\n            gap: 10px;\n            margin-bottom: 20px;\n        }\n\n        .tab-button {\n            padding: 10px 20px;\n            border: none;\n            background: #f0f0f0;\n            border-radius: 4px;\n            cursor: pointer;\n            transition: background-color 0.3s;\n            font-weight: 500;\n        }\n\n        .tab-button.active {\n            background: #2196F3;\n            color: white;\n        }\n\n        .calculator-section {\n            background: white;\n            border-radius: 8px;\n            box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n            padding: 25px;\n            margin-bottom: 30px;\n        }\n\n        .input-group {\n            margin-bottom: 20px;\n        }\n\n        .input-group label {\n            display: block;\n            margin-bottom: 8px;\n            font-weight: 500;\n            color: #333;\n        }\n\n        .input-group input, .input-group select {\n            width: 100%;\n            padding: 12px;\n            border: 1px solid #ddd;\n            border-radius: 4px;\n            font-size: 16px;\n            background: #fff;\n        }\n\n        .time-blocks {\n            display: grid;\n            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n            gap: 15px;\n            margin-bottom: 20px;\n        }\n\n        .time-block {\n            background: #f8f9fa;\n            padding: 15px;\n            border-radius: 4px;\n            border: 1px solid #ddd;\n        }\n\n        .calculate-button {\n            background: #4CAF50;\n            color: white;\n            padding: 12px 24px;\n            border: none;\n            border-radius: 4px;\n            cursor: pointer;\n            font-size: 16px;\n            width: 100%;\n            font-weight: 600;\n            transition: background-color 0.3s;\n        }\n\n        .calculate-button:hover {\n            background: #388E3C;\n        }\n\n        .results-display {\n            margin-top: 30px;\n            padding: 20px;\n            background: #f8f9fa;\n            border-radius: 8px;\n            border: 1px solid #ddd;\n            display: none;\n        }\n\n        .metrics-grid {\n            display: grid;\n            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n            gap: 20px;\n            margin-bottom: 20px;\n        }\n\n        .metric-card {\n            background: white;\n            padding: 20px;\n            border-radius: 8px;\n            text-align: center;\n            box-shadow: 0 2px 4px rgba(0,0,0,0.05);\n        }\n\n        .metric-value {\n            font-size: 24px;\n            font-weight: bold;\n            color: #2196F3;\n            margin: 10px 0;\n        }\n\n        .chart-container {\n            position: relative;\n            height: 400px;\n            width: 100%;\n            margin-top: 20px;\n            background: white;\n            padding: 15px;\n            border-radius: 8px;\n        }\n\n        @media (max-width: 768px) {\n            .time-blocks {\n                grid-template-columns: 1fr;\n            }\n            \n            .metrics-grid {\n                grid-template-columns: 1fr;\n            }\n\n            .calculator-title {\n                font-size: 2rem;\n            }\n        }\n    <\/style>\n\n    <h1 class=\"calculator-title\">Productivity Calculator<\/h1>\n\n    <div class=\"tab-navigation\">\n        <button class=\"tab-button active\" onclick=\"switchTab('calculator')\">Calculator<\/button>\n        <button class=\"tab-button\" onclick=\"switchTab('history')\">History<\/button>\n        <button class=\"tab-button\" onclick=\"switchTab('analytics')\">Analytics<\/button>\n    <\/div>\n\n    <div id=\"calculatorTab\" class=\"calculator-section\">\n        <div class=\"input-group\">\n            <label>Calculation Period<\/label>\n            <select id=\"periodSelect\" onchange=\"updateTimeBlocks()\">\n                <option value=\"daily\">Daily<\/option>\n                <option value=\"weekly\">Weekly<\/option>\n                <option value=\"monthly\">Monthly<\/option>\n            <\/select>\n        <\/div>\n\n        <div class=\"time-blocks\">\n            <div class=\"time-block\">\n                <label>Direct Work<\/label>\n                <input type=\"number\" id=\"directWork\" min=\"0\" step=\"0.5\" placeholder=\"Hours\">\n            <\/div>\n            <div class=\"time-block\">\n                <label>Meetings<\/label>\n                <input type=\"number\" id=\"meetings\" min=\"0\" step=\"0.5\" placeholder=\"Hours\">\n            <\/div>\n            <div class=\"time-block\">\n                <label>Training<\/label>\n                <input type=\"number\" id=\"training\" min=\"0\" step=\"0.5\" placeholder=\"Hours\">\n            <\/div>\n            <div class=\"time-block\">\n                <label>Problem Solving<\/label>\n                <input type=\"number\" id=\"problemSolving\" min=\"0\" step=\"0.5\" placeholder=\"Hours\">\n            <\/div>\n        <\/div>\n\n        <div class=\"input-group\">\n            <label>Total Available Time<\/label>\n            <input type=\"number\" id=\"totalTime\" min=\"0\" step=\"0.5\" placeholder=\"Total hours available\">\n        <\/div>\n\n        <button onclick=\"calculateProductivity()\" class=\"calculate-button\">Calculate Productivity<\/button>\n\n        <div id=\"results\" class=\"results-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <h3>Productivity Rate<\/h3>\n                    <div id=\"productivityRate\" class=\"metric-value\">-<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <h3>Productive Hours<\/h3>\n                    <div id=\"productiveHours\" class=\"metric-value\">-<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <h3>Efficiency Score<\/h3>\n                    <div id=\"efficiencyScore\" class=\"metric-value\">-<\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <div id=\"historyTab\" class=\"calculator-section\" style=\"display: none;\">\n        <h3>Productivity History<\/h3>\n        <div class=\"chart-container\">\n            <canvas id=\"historyChart\"><\/canvas>\n        <\/div>\n    <\/div>\n\n    <div id=\"analyticsTab\" class=\"calculator-section\" style=\"display: none;\">\n        <h3>Productivity Analytics<\/h3>\n        <div class=\"chart-container\">\n            <canvas id=\"weekdayChart\"><\/canvas>\n        <\/div>\n        <div class=\"chart-container\">\n            <canvas id=\"trendChart\"><\/canvas>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\n(function() {\n    let productivityHistory = [];\n    let historyChart = null;\n    let weekdayChart = null;\n    let trendChart = null;\n\n    \/\/ Initialize charts when the document is ready\n    document.addEventListener('DOMContentLoaded', function() {\n        \/\/ Load saved history from localStorage\n        const savedHistory = localStorage.getItem('productivityHistory');\n        if (savedHistory) {\n            productivityHistory = JSON.parse(savedHistory);\n        }\n        \n        \/\/ Set default period\n        updateTimeBlocks();\n    });\n\n    \/\/ Make functions globally available\n    window.switchTab = function(tabName) {\n        \/\/ Hide all tabs\n        document.querySelectorAll('.calculator-section').forEach(tab => {\n            tab.style.display = 'none';\n        });\n\n        \/\/ Show selected tab\n        document.getElementById(tabName + 'Tab').style.display = 'block';\n\n        \/\/ Update active button\n        document.querySelectorAll('.tab-button').forEach(button => {\n            button.classList.remove('active');\n        });\n        event.target.classList.add('active');\n\n        if (tabName === 'history') {\n            updateHistoryChart();\n        } else if (tabName === 'analytics') {\n            updateAnalytics();\n        }\n    };\n\n    window.updateTimeBlocks = function() {\n        const period = document.getElementById('periodSelect').value;\n        const totalTimeInput = document.getElementById('totalTime');\n        \n        const totalTimes = {\n            daily: '8',\n            weekly: '40',\n            monthly: '176'\n        };\n        \n        totalTimeInput.value = totalTimes[period];\n    };\n\n    window.calculateProductivity = function() {\n        const directWork = parseFloat(document.getElementById('directWork').value) || 0;\n        const meetings = parseFloat(document.getElementById('meetings').value) || 0;\n        const training = parseFloat(document.getElementById('training').value) || 0;\n        const problemSolving = parseFloat(document.getElementById('problemSolving').value) || 0;\n        const totalTime = parseFloat(document.getElementById('totalTime').value);\n\n        if (!totalTime) {\n            alert('Please enter total available time');\n            return;\n        }\n\n        const productiveTime = directWork + meetings + training + problemSolving;\n        const productivityRate = (productiveTime \/ totalTime) * 100;\n\n        \/\/ Update display\n        document.getElementById('productivityRate').textContent = productivityRate.toFixed(1) + '%';\n        document.getElementById('productiveHours').textContent = productiveTime.toFixed(1) + ' hrs';\n        document.getElementById('efficiencyScore').textContent = calculateEfficiencyScore(productivityRate);\n        document.getElementById('results').style.display = 'block';\n\n        \/\/ Save to history\n        const newEntry = {\n            date: new Date().toISOString(),\n            productivityRate,\n            productiveTime,\n            totalTime\n        };\n        \n        productivityHistory.push(newEntry);\n        localStorage.setItem('productivityHistory', JSON.stringify(productivityHistory));\n    };\n\n    function calculateEfficiencyScore(rate) {\n        if (rate >= 85) return 'Excellent';\n        if (rate >= 70) return 'Good';\n        if (rate >= 50) return 'Fair';\n        return 'Needs Improvement';\n    }\n\n    function updateHistoryChart() {\n        const ctx = document.getElementById('historyChart').getContext('2d');\n        \n        if (historyChart) {\n            historyChart.destroy();\n        }\n\n        historyChart = new Chart(ctx, {\n            type: 'line',\n            data: {\n                labels: productivityHistory.map(entry => \n                    new Date(entry.date).toLocaleDateString()\n                ),\n                datasets: [{\n                    label: 'Productivity Rate (%)',\n                    data: productivityHistory.map(entry => entry.productivityRate),\n                    borderColor: '#2196F3',\n                    tension: 0.1\n                }]\n            },\n            options: {\n                responsive: true,\n                maintainAspectRatio: false,\n                scales: {\n                    y: {\n                        beginAtZero: true,\n                        max: 100\n                    }\n                }\n            }\n        });\n    }\n\n    function updateAnalytics() {\n        \/\/ Calculate average productivity by day\n        const avgByDay = productivityHistory.reduce((acc, entry) => {\n            const day = new Date(entry.date).toLocaleDateString('en-US', { weekday: 'long' });\n            if (!acc[day]) {\n                acc[day] = { total: 0, count: 0 };\n            }\n            acc[day].total += entry.productivityRate;\n            acc[day].count += 1;\n            return acc;\n        }, {});\n\n        const weekdayData = Object.entries(avgByDay).map(([day, data]) => ({\n            day,\n            average: data.total \/ data.count\n        }));\n\n        \/\/ Update weekday chart\n        const weekdayCtx = document.getElementById('weekdayChart').getContext('2d');\n        if (weekdayChart) {\n            weekdayChart.destroy();\n        }\n\n        weekdayChart = new Chart(weekdayCtx, {\n            type: 'bar',\n            data: {\n                labels: weekdayData.map(d => d.day),\n                datasets: [{\n                    label: 'Average Productivity by Day (%)',\n                    data: weekdayData.map(d => d.average),\n                    backgroundColor: '#8884d8'\n                }]\n            },\n            options: {\n                responsive: true,\n                maintainAspectRatio: false,\n                scales: {\n                    y: {\n                        beginAtZero: true,\n                        max: 100\n                    }\n                }\n            }\n        });\n\n        \/\/ Update trend chart\n        const trendCtx = document.getElementById('trendChart').getContext('2d');\n        if (trendChart) {\n            trendChart.destroy();\n        }\n\n        trendChart = new Chart(trendCtx, {\n            type: 'line',\n            data: {\n                labels: productivityHistory.map(entry => \n                    new Date(entry.date).toLocaleDateString()\n                ),\n                datasets: [{\n                    label: 'Productivity Trend (%)',\n                    data: productivityHistory.map(entry => entry.productivityRate),\n                    borderColor: '#82ca9d',\n                    fill: true,\n                    backgroundColor: 'rgba(130, 202, 157, 0.2)'\n                }]\n            },\n            options: {\n                responsive: true,\n                maintainAspectRatio: false,\n                scales: {\n                    y: {\n                        beginAtZero: true,\n                        max: 100\n                    }\n                }\n            }\n        });\n    }\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<style>\n    .calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n        background-color: white;\n        padding: 15px;\n        border-radius: 8px;\n        border: 1px solid #ddd;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 8px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        font-size: 16px;\n    }\n\n    .auto-calculate {\n        font-size: 0.9em;\n        color: #666;\n        margin-top: 5px;\n    }\n    \n    .calculate-button {\n        background-color: #2196F3;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 16px;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #1976D2;\n    }\n    \n    .result-display {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 8px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #f8f9fa;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n        color: #2196F3;\n    }\n    \n    .rate-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .low-rate {\n        background-color: #e8f5e9;\n        color: #2e7d32;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .moderate-rate {\n        background-color: #fff3e0;\n        color: #ef6c00;\n        border: 1px solid #ffe0b2;\n    }\n    \n    .high-rate {\n        background-color: #ffebee;\n        color: #c62828;\n        border: 1px solid #ffcdd2;\n    }\n    \n    .info-box {\n        background-color: white;\n        padding: 15px;\n        border-radius: 8px;\n        border: 1px solid #ddd;\n        margin-top: 20px;\n    }\n    \n    .info-title {\n        font-weight: bold;\n        color: #2196F3;\n        margin-bottom: 10px;\n    }\n    \n    @media (max-width: 768px) {\n        .metrics-grid {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"calculator-container\">\n    <h2>Absenteeism Rate Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Total Absent Days \u00f7 Total Workdays) \u00d7 100 = Absenteeism Rate %<\/code><\/p>\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Company with 20 employees, 45 total absent days in a month with 22 working days:<\/p>\n            <p>45 \u00f7 (20 \u00d7 22) \u00d7 100 = 10.2%<\/p>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Calculate Absenteeism Rate<\/h3>\n        \n        <div class=\"input-group\">\n            <label for=\"totalAbsentDays\">Total Absent Days:<\/label>\n            <input type=\"number\" id=\"totalAbsentDays\" placeholder=\"Enter total absent days\" min=\"0\" step=\"1\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"numberOfEmployees\">Number of Employees:<\/label>\n            <input type=\"number\" id=\"numberOfEmployees\" placeholder=\"Enter number of employees\" min=\"1\" step=\"1\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"workingDays\">Working Days in Period:<\/label>\n            <input type=\"number\" id=\"workingDays\" placeholder=\"Enter number of working days\" min=\"1\" step=\"1\">\n            <p class=\"auto-calculate\">Typical month has 20-22 working days<\/p>\n        <\/div>\n        \n        <button onclick=\"calculateAbsenteeism()\" class=\"calculate-button\">Calculate Rate<\/button>\n        \n        <div id=\"result\" class=\"result-display\" style=\"display: none;\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Absent Days<\/div>\n                    <div id=\"absentDisplay\" class=\"metric-value\">-<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Workdays<\/div>\n                    <div id=\"workdaysDisplay\" class=\"metric-value\">-<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Absenteeism Rate<\/div>\n                    <div id=\"rateDisplay\" class=\"metric-value\">-<\/div>\n                <\/div>\n            <\/div>\n            \n            <div id=\"rateIndicator\" class=\"rate-indicator\"><\/div>\n        <\/div>\n        \n        <div class=\"info-box\">\n            <div class=\"info-title\">Understanding the Results<\/div>\n            <ul>\n                <li>Rate below 3%: Excellent attendance level<\/li>\n                <li>Rate 3-5%: Good attendance, but monitor trends<\/li>\n                <li>Rate 5-10%: Moderate concerns, consider interventions<\/li>\n                <li>Rate above 10%: High absenteeism, requires immediate attention<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateAbsenteeism() {\n    const absentDays = parseFloat(document.getElementById('totalAbsentDays').value);\n    const employees = parseFloat(document.getElementById('numberOfEmployees').value);\n    const workingDays = parseFloat(document.getElementById('workingDays').value);\n    \n    if (isNaN(absentDays) || isNaN(employees) || isNaN(workingDays) || \n        employees <= 0 || workingDays <= 0) {\n        alert('Please enter valid numbers. Employees and working days must be greater than zero.');\n        return;\n    }\n    \n    const totalWorkdays = employees * workingDays;\n    const rate = (absentDays \/ totalWorkdays) * 100;\n    \n    \/\/ Update displays\n    document.getElementById('absentDisplay').textContent = absentDays;\n    document.getElementById('workdaysDisplay').textContent = totalWorkdays;\n    document.getElementById('rateDisplay').textContent = rate.toFixed(2) + '%';\n    \n    \/\/ Show result section\n    document.getElementById('result').style.display = 'block';\n    \n    \/\/ Update rate indicator\n    const indicator = document.getElementById('rateIndicator');\n    let className = '';\n    let message = '';\n    \n    if (rate <= 3) {\n        className = 'low-rate';\n        message = '<strong>Excellent Attendance<\/strong><br>Very low absenteeism rate indicates strong attendance culture.';\n    } else if (rate <= 5) {\n        className = 'low-rate';\n        message = '<strong>Good Attendance<\/strong><br>Healthy attendance levels, continue monitoring trends.';\n    } else if (rate <= 10) {\n        className = 'moderate-rate';\n        message = '<strong>Moderate Absenteeism<\/strong><br>Consider implementing attendance improvement strategies.';\n    } else {\n        className = 'high-rate';\n        message = '<strong>High Absenteeism<\/strong><br>Immediate attention required. Review policies and support systems.';\n    }\n    \n    indicator.className = `rate-indicator ${className}`;\n    indicator.innerHTML = message;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Modified version with inline validation instead of popup -->\n<style>\n    \/* ... (previous styles remain the same until input-group) ... *\/\n    \n    .input-group {\n        margin-bottom: 15px;\n        background-color: white;\n        padding: 15px;\n        border-radius: 8px;\n        border: 1px solid #ddd;\n        position: relative;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 8px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        font-size: 16px;\n    }\n\n    .input-error {\n        border-color: #dc3545 !important;\n    }\n\n    .validation-message {\n        color: #dc3545;\n        font-size: 0.85em;\n        margin-top: 5px;\n        display: none;\n    }\n\n    .input-error + .validation-message {\n        display: block;\n    }\n\n    \/* ... (rest of the original styles remain the same) ... *\/\n<\/style>\n\n<div class=\"calculator-container\">\n    <!-- ... (previous HTML remains the same until input groups) ... -->\n    \n    <div class=\"input-group\">\n        <label for=\"outputValue\">Output Value:<\/label>\n        <input type=\"number\" id=\"outputValue\" placeholder=\"Enter output value\" min=\"0\" step=\"0.01\">\n        <div class=\"validation-message\">Please enter a valid output value<\/div>\n    <\/div>\n    \n    <div class=\"input-group\">\n        <label for=\"inputValue\">Input Value:<\/label>\n        <input type=\"number\" id=\"inputValue\" placeholder=\"Enter input value\" min=\"0\" step=\"0.01\">\n        <div class=\"validation-message\">Please enter a valid input value (must be greater than 0)<\/div>\n    <\/div>\n\n    <!-- ... (rest of the HTML remains the same) ... -->\n<\/div>\n\n<script>\nfunction calculateRatio() {\n    const outputValue = parseFloat(document.getElementById('outputValue').value);\n    const inputValue = parseFloat(document.getElementById('inputValue').value);\n    \n    \/\/ Reset previous validation states\n    const outputInput = document.getElementById('outputValue');\n    const inputInput = document.getElementById('inputValue');\n    outputInput.classList.remove('input-error');\n    inputInput.classList.remove('input-error');\n    \n    let hasErrors = false;\n    \n    \/\/ Validate output value\n    if (isNaN(outputValue) || outputValue < 0) {\n        outputInput.classList.add('input-error');\n        hasErrors = true;\n    }\n    \n    \/\/ Validate input value\n    if (isNaN(inputValue) || inputValue <= 0) {\n        inputInput.classList.add('input-error');\n        hasErrors = true;\n    }\n    \n    \/\/ Don't proceed if there are validation errors\n    if (hasErrors) {\n        return;\n    }\n    \n    const ratio = (outputValue \/ inputValue) * 100;\n    \n    \/\/ Update displays\n    document.getElementById('outputDisplay').textContent = outputValue.toFixed(2);\n    document.getElementById('inputDisplay').textContent = inputValue.toFixed(2);\n    document.getElementById('ratioDisplay').textContent = ratio.toFixed(2) + '%';\n    \n    \/\/ Show result section\n    document.getElementById('result').style.display = 'block';\n    \n    \/\/ Update efficiency indicator\n    const indicator = document.getElementById('efficiencyIndicator');\n    let className = '';\n    let message = '';\n    \n    if (ratio >= 90) {\n        className = 'high-efficiency';\n        message = '<strong>High Efficiency<\/strong><br>Excellent output-to-input ratio. Process is performing very efficiently.';\n    } else if (ratio >= 70) {\n        className = 'moderate-efficiency';\n        message = '<strong>Moderate Efficiency<\/strong><br>Good performance but room for improvement. Consider optimization strategies.';\n    } else {\n        className = 'low-efficiency';\n        message = '<strong>Low Efficiency<\/strong><br>Process efficiency needs improvement. Review and optimize input utilization.';\n    }\n    \n    indicator.className = `efficiency-indicator ${className}`;\n    indicator.innerHTML = message;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .skills-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .skill-level-guide {\n        margin: 20px 0;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 8px;\n        border: 1px solid #ddd;\n    }\n    \n    .level-item {\n        display: flex;\n        align-items: center;\n        margin: 10px 0;\n        padding: 8px;\n        border-radius: 4px;\n    }\n    \n    .level-number {\n        font-size: 1.2em;\n        font-weight: bold;\n        min-width: 30px;\n        margin-right: 10px;\n    }\n    \n    .level-description {\n        flex-grow: 1;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .skill-rating {\n        display: flex;\n        gap: 10px;\n    }\n    \n    .rating-button {\n        flex: 1;\n        padding: 10px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background: white;\n        cursor: pointer;\n        transition: all 0.3s ease;\n    }\n    \n    .rating-button:hover {\n        background-color: #f0f0f0;\n    }\n    \n    .rating-button.selected {\n        background-color: #2196F3;\n        color: white;\n        border-color: #1976D2;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #2196F3;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #1976D2;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .gap-visualization {\n        position: relative;\n        height: 60px;\n        background: #f5f5f5;\n        border-radius: 4px;\n        margin: 20px 0;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n    }\n    \n    .gap-scale {\n        position: absolute;\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n        display: flex;\n        justify-content: space-between;\n        padding: 0 20px;\n        align-items: center;\n        color: #666;\n        font-size: 0.8em;\n    }\n    \n    .gap-marker {\n        width: 4px;\n        height: 40px;\n        background-color: #2196F3;\n        position: absolute;\n        left: 50%;\n        transform: translateX(-50%);\n        transition: left 0.3s ease;\n    }\n    \n    .gap-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .gap-significant-under {\n        background-color: #ffebee;\n        color: #c62828;\n        border: 1px solid #ffcdd2;\n    }\n    \n    .gap-moderate-under {\n        background-color: #fff3e0;\n        color: #ef6c00;\n        border: 1px solid #ffe0b2;\n    }\n    \n    .gap-match {\n        background-color: #e8f5e9;\n        color: #2e7d32;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .gap-over {\n        background-color: #e3f2fd;\n        color: #1565c0;\n        border: 1px solid #bbdefb;\n    }\n    \n    .interpretation-guide {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    @media (max-width: 768px) {\n        .metrics-grid {\n            grid-template-columns: 1fr;\n        }\n        \n        .skill-rating {\n            flex-wrap: wrap;\n        }\n        \n        .rating-button {\n            flex-basis: calc(20% - 10px);\n        }\n    }\n<\/style>\n\n<div class=\"skills-calculator-container\">\n    <h2>Skills Gap Analysis Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>Required Skills Level - Current Skills Level = Skills Gap<\/code><\/p>\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Python skills assessment with required level 4 and current level 2:<\/p>\n            4 - 2 = +2 (indicates upskilling needed)\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Junior Developer:<\/strong> 3 - 1 = +2<\/p>\n            <p><strong>Senior Developer:<\/strong> 4 - 5 = -1<\/p>\n        <\/div>\n    <\/div>\n    \n    <div class=\"skill-level-guide\">\n        <h3>Skill Level Scale<\/h3>\n        <div class=\"level-item\">\n            <span class=\"level-number\">1:<\/span>\n            <span class=\"level-description\">Beginner - Basic understanding, requires significant guidance<\/span>\n        <\/div>\n        <div class=\"level-item\">\n            <span class=\"level-number\">2:<\/span>\n            <span class=\"level-description\">Basic - Can perform simple tasks with some guidance<\/span>\n        <\/div>\n        <div class=\"level-item\">\n            <span class=\"level-number\">3:<\/span>\n            <span class=\"level-description\">Intermediate - Works independently on routine tasks<\/span>\n        <\/div>\n        <div class=\"level-item\">\n            <span class=\"level-number\">4:<\/span>\n            <span class=\"level-description\">Advanced - Handles complex tasks, guides others<\/span>\n        <\/div>\n        <div class=\"level-item\">\n            <span class=\"level-number\">5:<\/span>\n            <span class=\"level-description\">Expert - Masters complex problems, leads\/teaches others<\/span>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Skills Gap Calculator<\/h3>\n        \n        <!-- Required Skills Section -->\n        <div class=\"category-group\">\n            <h4>Required Skill Level<\/h4>\n            <div class=\"skill-rating\" id=\"requiredSkillRating\">\n                <button class=\"rating-button\" onclick=\"setRequiredLevel(1)\">1<\/button>\n                <button class=\"rating-button\" onclick=\"setRequiredLevel(2)\">2<\/button>\n                <button class=\"rating-button\" onclick=\"setRequiredLevel(3)\">3<\/button>\n                <button class=\"rating-button\" onclick=\"setRequiredLevel(4)\">4<\/button>\n                <button class=\"rating-button\" onclick=\"setRequiredLevel(5)\">5<\/button>\n            <\/div>\n        <\/div>\n        \n        <!-- Current Skills Section -->\n        <div class=\"category-group\">\n            <h4>Current Skill Level<\/h4>\n            <div class=\"skill-rating\" id=\"currentSkillRating\">\n                <button class=\"rating-button\" onclick=\"setCurrentLevel(1)\">1<\/button>\n                <button class=\"rating-button\" onclick=\"setCurrentLevel(2)\">2<\/button>\n                <button class=\"rating-button\" onclick=\"setCurrentLevel(3)\">3<\/button>\n                <button class=\"rating-button\" onclick=\"setCurrentLevel(4)\">4<\/button>\n                <button class=\"rating-button\" onclick=\"setCurrentLevel(5)\">5<\/button>\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateSkillsGap()\" class=\"calculate-button\">Calculate Skills Gap<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Required Level<\/div>\n                    <div id=\"requiredLevel\" class=\"metric-value\">-<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Current Level<\/div>\n                    <div id=\"currentLevel\" class=\"metric-value\">-<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Skills Gap<\/div>\n                    <div id=\"skillsGap\" class=\"metric-value\">-<\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"gap-visualization\">\n                <div class=\"gap-scale\">\n                    <span>-4<\/span>\n                    <span>-2<\/span>\n                    <span>0<\/span>\n                    <span>+2<\/span>\n                    <span>+4<\/span>\n                <\/div>\n                <div id=\"gapMarker\" class=\"gap-marker\"><\/div>\n            <\/div>\n            \n            <div id=\"gapIndicator\" class=\"gap-indicator\"><\/div>\n            \n            <div class=\"interpretation-guide\">\n                <h4>Gap Interpretation Guide<\/h4>\n                <div class=\"level-item\">\n                    <span>+3 to +4:<\/span>\n                    <span>Significant skill development needed<\/span>\n                <\/div>\n                <div class=\"level-item\">\n                    <span>+1 to +2:<\/span>\n                    <span>Moderate upskilling required<\/span>\n                <\/div>\n                <div class=\"level-item\">\n                    <span>0:<\/span>\n                    <span>Perfect skill match<\/span>\n                <\/div>\n                <div class=\"level-item\">\n                    <span>-1 to -4:<\/span>\n                    <span>Skill level exceeds requirements<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nlet requiredLevel = null;\nlet currentLevel = null;\n\nfunction setRequiredLevel(level) {\n    requiredLevel = level;\n    updateRatingButtons('requiredSkillRating', level);\n}\n\nfunction setCurrentLevel(level) {\n    currentLevel = level;\n    updateRatingButtons('currentSkillRating', level);\n}\n\nfunction updateRatingButtons(containerId, selectedLevel) {\n    const container = document.getElementById(containerId);\n    const buttons = container.getElementsByClassName('rating-button');\n    \n    for (let button of buttons) {\n        button.classList.remove('selected');\n        if (parseInt(button.textContent) === selectedLevel) {\n            button.classList.add('selected');\n        }\n    }\n}\n\nfunction calculateSkillsGap() {\n    if (requiredLevel === null || currentLevel === null) {\n        alert('Please select both required and current skill levels');\n        return;\n    }\n    \n    \/\/ Calculate gap\n    const gap = requiredLevel - currentLevel;\n    \n    \/\/ Update displays\n    document.getElementById('requiredLevel').textContent = requiredLevel;\n    document.getElementById('currentLevel').textContent = currentLevel;\n    document.getElementById('skillsGap').textContent = gap > 0 ? '+' + gap : gap;\n    \n    \/\/ Update gap visualization\n    const gapMarker = document.getElementById('gapMarker');\n    const gapPercentage = ((gap + 4) \/ 8) * 100; \/\/ Convert -4 to +4 range to 0-100%\n    gapMarker.style.left = gapPercentage + '%';\n    \n    \/\/ Add appropriate status message based on gap\n    const gapIndicator = document.getElementById('gapIndicator');\n    let className = '';\n    let message = '';\n    \n    if (gap >= 3) {\n        className = 'gap-significant-under';\n        message = '<strong>Significant Development Needed<\/strong><br>Priority focus required on skill development. Consider formal training programs and structured learning paths.';\n    } else if (gap > 0) {\n        className = 'gap-moderate-under';\n        message = '<strong>Moderate Upskilling Required<\/strong><br>Some skill development needed. Focus on targeted learning and practical experience.';\n    } else if (gap === 0) {\n        className = 'gap-match';\n        message = '<strong>Perfect Skill Match<\/strong><br>Current skill level matches requirements. Focus on maintaining and updating skills.';\n    } else {\n        className = 'gap-over';\n        message = '<strong>Skill Level Exceeds Requirements<\/strong><br>Consider mentoring others or taking on more challenging responsibilities.';\n    }\n    \n    gapIndicator.className = `gap-indicator ${className}`;\n    gapIndicator.innerHTML = message;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .completion-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f4f8;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .fraction {\n        display: inline-block;\n        text-align: center;\n        vertical-align: middle;\n        margin: 0 5px;\n    }\n    \n    .numerator, .denominator {\n        padding: 3px 10px;\n        display: block;\n    }\n    \n    .denominator {\n        border-top: 2px solid #333;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #f0f4f8;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #3f51b5;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #303f9f;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .progress-bar {\n        width: 100%;\n        height: 20px;\n        background-color: #f0f0f0;\n        border-radius: 10px;\n        overflow: hidden;\n        margin: 20px 0;\n    }\n    \n    .progress-fill {\n        height: 100%;\n        transition: width 0.5s ease-in-out;\n    }\n    \n    .completion-status {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .status-critical {\n        background-color: #ffebee;\n        color: #c62828;\n        border: 1px solid #ffcdd2;\n    }\n    \n    .status-warning {\n        background-color: #fff3e0;\n        color: #ef6c00;\n        border: 1px solid #ffe0b2;\n    }\n    \n    .status-good {\n        background-color: #e8f5e9;\n        color: #2e7d32;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .status-complete {\n        background-color: #e3f2fd;\n        color: #1565c0;\n        border: 1px solid #bbdefb;\n    }\n    \n    .ratio-critical {\n        color: #c62828;\n    }\n    \n    .ratio-warning {\n        color: #ef6c00;\n    }\n    \n    .ratio-good {\n        color: #2e7d32;\n    }\n    \n    .ratio-complete {\n        color: #1565c0;\n    }\n    \n    .interpretation-guide {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .guide-item {\n        display: flex;\n        justify-content: space-between;\n        padding: 8px 0;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .guide-item:last-child {\n        border-bottom: none;\n    }\n    \n    @media (max-width: 768px) {\n        .metrics-grid {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"completion-calculator-container\">\n    <h2>Training Completion Ratio Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Number of completed trainings \/ Number of assigned trainings) \u00d7 100<\/code><\/p>\n        \n        <h4>Traditional Format:<\/h4>\n        <div class=\"fraction\">\n            <span class=\"numerator\">Completed trainings<\/span>\n            <span class=\"denominator\">Assigned trainings<\/span>\n        <\/div>\n        \u00d7 100\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Employee with 8 completed trainings out of 10 assigned:<\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">8<\/span>\n                <span class=\"denominator\">10<\/span>\n            <\/div>\n            \u00d7 100 = 80%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>New Employee:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">3<\/span>\n                <span class=\"denominator\">12<\/span>\n            <\/div>\n            \u00d7 100 = 25%\n            \n            <p><strong>Experienced Employee:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">15<\/span>\n                <span class=\"denominator\">15<\/span>\n            <\/div>\n            \u00d7 100 = 100%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Completion Ratio Calculator<\/h3>\n        \n        <!-- Training Status Section -->\n        <div class=\"category-group\">\n            <h4>Training Status<\/h4>\n            <div class=\"input-group\">\n                <label for=\"completedTrainings\">Number of Completed Trainings:<\/label>\n                <input type=\"number\" id=\"completedTrainings\" min=\"0\" step=\"1\" placeholder=\"Enter number of completed trainings\">\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"assignedTrainings\">Number of Assigned Trainings:<\/label>\n                <input type=\"number\" id=\"assignedTrainings\" min=\"0\" step=\"1\" placeholder=\"Enter number of assigned trainings\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateCompletionRatio()\" class=\"calculate-button\">Calculate Completion Ratio<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Completed<\/div>\n                    <div id=\"completedCount\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Assigned<\/div>\n                    <div id=\"assignedCount\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Completion Ratio<\/div>\n                    <div id=\"completionRatio\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"progress-bar\">\n                <div id=\"progressFill\" class=\"progress-fill\" style=\"width: 0%\"><\/div>\n            <\/div>\n            \n            <div id=\"completionStatus\" class=\"completion-status\"><\/div>\n            \n            <div class=\"interpretation-guide\">\n                <h4>Completion Status Guide<\/h4>\n                <div class=\"guide-item\">\n                    <span>Below 50%<\/span>\n                    <span>Critical - Immediate attention required<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>50-75%<\/span>\n                    <span>Warning - Progress needed<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>75-99%<\/span>\n                    <span>Good progress - Near completion<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>100%<\/span>\n                    <span>Complete - All trainings finished<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateCompletionRatio() {\n    \/\/ Get input values\n    const completedTrainings = parseInt(document.getElementById('completedTrainings').value) || 0;\n    const assignedTrainings = parseInt(document.getElementById('assignedTrainings').value) || 0;\n    \n    \/\/ Validate inputs\n    if (assignedTrainings <= 0) {\n        alert('Please enter a valid number of assigned trainings');\n        return;\n    }\n    \n    if (completedTrainings > assignedTrainings) {\n        alert('Completed trainings cannot exceed assigned trainings');\n        return;\n    }\n    \n    \/\/ Calculate completion ratio\n    const ratio = (completedTrainings \/ assignedTrainings) * 100;\n    \n    \/\/ Update displays\n    document.getElementById('completedCount').textContent = completedTrainings;\n    document.getElementById('assignedCount').textContent = assignedTrainings;\n    \n    \/\/ Update ratio with color coding\n    const ratioElement = document.getElementById('completionRatio');\n    ratioElement.textContent = ratio.toFixed(1) + '%';\n    \n    \/\/ Remove any existing status classes\n    ratioElement.classList.remove(\n        'ratio-critical',\n        'ratio-warning',\n        'ratio-good',\n        'ratio-complete'\n    );\n    \n    \/\/ Update progress bar\n    const progressFill = document.getElementById('progressFill');\n    progressFill.style.width = ratio + '%';\n    \n    \/\/ Add appropriate status class and message based on ratio\n    const completionStatus = document.getElementById('completionStatus');\n    let statusClass = '';\n    let fillColor = '';\n    let message = '';\n    let valueClass = '';\n    \n    if (ratio < 50) {\n        statusClass = 'status-critical';\n        fillColor = '#ffcdd2';\n        valueClass = 'ratio-critical';\n        message = '<strong>Critical Progress<\/strong><br>Training completion rate needs immediate attention. Set up a training schedule and follow up on incomplete modules.';\n    } else if (ratio < 75) {\n        statusClass = 'status-warning';\n        fillColor = '#ffe0b2';\n        valueClass = 'ratio-warning';\n        message = '<strong>Progress Needed<\/strong><br>Training completion is behind schedule. Review remaining modules and create completion timeline.';\n    } else if (ratio < 100) {\n        statusClass = 'status-good';\n        fillColor = '#c8e6c9';\n        valueClass = 'ratio-good';\n        message = '<strong>Good Progress<\/strong><br>Most trainings completed. Focus on remaining modules to achieve full completion.';\n    } else {\n        statusClass = 'status-complete';\n        fillColor = '#bbdefb';\n        valueClass = 'ratio-complete';\n        message = '<strong>All Trainings Complete<\/strong><br>Excellent work! All assigned training modules have been completed.';\n    }\n    \n    ratioElement.classList.add(valueClass);\n    completionStatus.className = `completion-status ${statusClass}`;\n    completionStatus.innerHTML = message;\n    progressFill.style.backgroundColor = fillColor;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .roi-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .bracket-formula {\n        font-family: monospace;\n        font-size: 1.2em;\n        margin: 15px 0;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-prefix {\n        position: relative;\n        display: flex;\n        align-items: center;\n    }\n    \n    .input-prefix input {\n        width: 100%;\n        padding: 8px 8px 8px 30px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .input-prefix::before {\n        content: \"$\";\n        position: absolute;\n        left: 12px;\n        top: 50%;\n        transform: translateY(-50%);\n        color: #666;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #4caf50;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #43a047;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .roi-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .roi-negative {\n        background-color: #ffebee;\n        color: #c62828;\n        border: 1px solid #ffcdd2;\n    }\n    \n    .roi-breakeven {\n        background-color: #fff3e0;\n        color: #ef6c00;\n        border: 1px solid #ffe0b2;\n    }\n    \n    .roi-positive {\n        background-color: #e8f5e9;\n        color: #2e7d32;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .roi-exceptional {\n        background-color: #e3f2fd;\n        color: #1565c0;\n        border: 1px solid #bbdefb;\n    }\n    \n    .value-negative {\n        color: #c62828;\n    }\n    \n    .value-breakeven {\n        color: #ef6c00;\n    }\n    \n    .value-positive {\n        color: #2e7d32;\n    }\n    \n    .value-exceptional {\n        color: #1565c0;\n    }\n    \n    .interpretation-guide {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .guide-item {\n        display: flex;\n        justify-content: space-between;\n        padding: 8px 0;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .guide-item:last-child {\n        border-bottom: none;\n    }\n    \n    .calculation-steps {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .step {\n        margin: 10px 0;\n        padding: 5px 0;\n    }\n    \n    @media (max-width: 768px) {\n        .metrics-grid {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"roi-calculator-container\">\n    <h2>Training ROI Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <div class=\"bracket-formula\">\n            [(Benefits - Training costs) \/ Training costs] \u00d7 100\n        <\/div>\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Training program with $50,000 benefits and $20,000 costs:<\/p>\n            [($50,000 - $20,000) \/ $20,000] \u00d7 100 = 150%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Small Program:<\/strong><\/p>\n            [($5,000 - $2,000) \/ $2,000] \u00d7 100 = 150%\n            \n            <p><strong>Large Program:<\/strong><\/p>\n            [($500,000 - $200,000) \/ $200,000] \u00d7 100 = 150%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Training ROI Calculator<\/h3>\n        \n        <!-- Benefits Section -->\n        <div class=\"category-group\">\n            <h4>Training Benefits<\/h4>\n            <div class=\"input-group\">\n                <label for=\"benefits\">Total Benefits (Productivity Gains, Cost Savings):<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"benefits\" min=\"0\" step=\"1000\" placeholder=\"Enter total benefits value\">\n                <\/div>\n            <\/div>\n        <\/div>\n        \n        <!-- Costs Section -->\n        <div class=\"category-group\">\n            <h4>Training Costs<\/h4>\n            <div class=\"input-group\">\n                <label for=\"costs\">Total Training Costs:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"costs\" min=\"0\" step=\"1000\" placeholder=\"Enter total training costs\">\n                <\/div>\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateTrainingROI()\" class=\"calculate-button\">Calculate Training ROI<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Net Benefit<\/div>\n                    <div id=\"netBenefit\" class=\"metric-value\">$0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Costs<\/div>\n                    <div id=\"totalCosts\" class=\"metric-value\">$0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">ROI<\/div>\n                    <div id=\"roiValue\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div id=\"roiIndicator\" class=\"roi-indicator\"><\/div>\n            \n            <div class=\"calculation-steps\">\n                <h4>Calculation Breakdown<\/h4>\n                <div id=\"calculationSteps\"><\/div>\n            <\/div>\n            \n            <div class=\"interpretation-guide\">\n                <h4>ROI Interpretation Guide<\/h4>\n                <div class=\"guide-item\">\n                    <span>Below 0%<\/span>\n                    <span>Negative return (Loss on investment)<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>0-50%<\/span>\n                    <span>Break-even to moderate return<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>50-150%<\/span>\n                    <span>Good return on investment<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>Above 150%<\/span>\n                    <span>Exceptional return on investment<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction formatCurrency(amount) {\n    return new Intl.NumberFormat('en-US', {\n        style: 'currency',\n        currency: 'USD',\n        minimumFractionDigits: 0,\n        maximumFractionDigits: 0\n    }).format(amount);\n}\n\nfunction calculateTrainingROI() {\n    \/\/ Get input values\n    const benefits = parseFloat(document.getElementById('benefits').value) || 0;\n    const costs = parseFloat(document.getElementById('costs').value) || 0;\n    \n    \/\/ Validate inputs\n    if (costs <= 0) {\n        alert('Please enter valid training costs');\n        return;\n    }\n    \n    \/\/ Calculate ROI\n    const netBenefit = benefits - costs;\n    const roi = (netBenefit \/ costs) * 100;\n    \n    \/\/ Update displays\n    document.getElementById('netBenefit').textContent = formatCurrency(netBenefit);\n    document.getElementById('totalCosts').textContent = formatCurrency(costs);\n    \n    \/\/ Update ROI with color coding\n    const roiElement = document.getElementById('roiValue');\n    roiElement.textContent = roi.toFixed(1) + '%';\n    \n    \/\/ Remove any existing status classes\n    roiElement.classList.remove(\n        'value-negative',\n        'value-breakeven',\n        'value-positive',\n        'value-exceptional'\n    );\n    \n    \/\/ Update calculation steps\n    document.getElementById('calculationSteps').innerHTML = `\n        <div class=\"step\">1. Net Benefit = ${formatCurrency(benefits)} - ${formatCurrency(costs)} = ${formatCurrency(netBenefit)}<\/div>\n        <div class=\"step\">2. ROI = ${formatCurrency(netBenefit)} \u00f7 ${formatCurrency(costs)} = ${(netBenefit\/costs).toFixed(2)}<\/div>\n        <div class=\"step\">3. Percentage = ${(netBenefit\/costs).toFixed(2)} \u00d7 100 = ${roi.toFixed(1)}%<\/div>\n    `;\n    \n    \/\/ Add appropriate status class and message based on ROI\n    const roiIndicator = document.getElementById('roiIndicator');\n    let statusClass = '';\n    let indicatorClass = '';\n    let message = '';\n    \n    if (roi < 0) {\n        statusClass = 'value-negative';\n        indicatorClass = 'roi-negative';\n        message = '<strong>Negative Return on Investment<\/strong><br>Training costs exceed benefits. Review program costs and effectiveness, identify areas for improvement or cost reduction.';\n    } else if (roi < 50) {\n        statusClass = 'value-breakeven';\n        indicatorClass = 'roi-breakeven';\n        message = '<strong>Break-even to Moderate Return<\/strong><br>Program is covering costs but could be optimized. Consider ways to increase benefits or reduce costs.';\n    } else if (roi < 150) {\n        statusClass = 'value-positive';\n        indicatorClass = 'roi-positive';\n        message = '<strong>Good Return on Investment<\/strong><br>Training program is delivering positive returns. Continue monitoring and look for optimization opportunities.';\n    } else {\n        statusClass = 'value-exceptional';\n        indicatorClass = 'roi-exceptional';\n        message = '<strong>Exceptional Return on Investment<\/strong><br>Training program is highly effective. Document success factors and consider expanding the program.';\n    }\n    \n    roiElement.classList.add(statusClass);\n    roiIndicator.className = `roi-indicator ${indicatorClass}`;\n    roiIndicator.innerHTML = message;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .satisfaction-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f8ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .fraction {\n        display: inline-block;\n        text-align: center;\n        vertical-align: middle;\n        margin: 0 5px;\n    }\n    \n    .numerator, .denominator {\n        padding: 3px 10px;\n        display: block;\n    }\n    \n    .denominator {\n        border-top: 2px solid #333;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #f0f8ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #00bcd4;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #00acc1;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .satisfaction-level {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .level-needs-attention {\n        background-color: #ffebee;\n        color: #c62828;\n        border: 1px solid #ffcdd2;\n    }\n    \n    .level-moderate {\n        background-color: #fff3e0;\n        color: #ef6c00;\n        border: 1px solid #ffe0b2;\n    }\n    \n    .level-good {\n        background-color: #e8f5e9;\n        color: #2e7d32;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .score-needs-attention {\n        color: #c62828;\n    }\n    \n    .score-moderate {\n        color: #ef6c00;\n    }\n    \n    .score-good {\n        color: #2e7d32;\n    }\n    \n    .interpretation-guide {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .guide-item {\n        display: flex;\n        justify-content: space-between;\n        padding: 8px 0;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .guide-item:last-child {\n        border-bottom: none;\n    }\n    \n    .progress-bar {\n        width: 100%;\n        height: 20px;\n        background-color: #f0f0f0;\n        border-radius: 10px;\n        overflow: hidden;\n        margin-top: 10px;\n    }\n    \n    .progress-fill {\n        height: 100%;\n        transition: width 0.5s ease-in-out;\n    }\n    \n    @media (max-width: 768px) {\n        .metrics-grid {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"satisfaction-calculator-container\">\n    <h2>Benefits Satisfaction Score Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Benefits satisfaction score \/ Maximum possible score) \u00d7 100<\/code><\/p>\n        \n        <h4>Traditional Format:<\/h4>\n        <div class=\"fraction\">\n            <span class=\"numerator\">Total satisfaction score<\/span>\n            <span class=\"denominator\">Maximum possible score<\/span>\n        <\/div>\n        \u00d7 100\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>100 respondents with total score of 380 on 1-5 scale:<\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">380<\/span>\n                <span class=\"denominator\">500<\/span>\n            <\/div>\n            \u00d7 100 = 76%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Small Team:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">42<\/span>\n                <span class=\"denominator\">50<\/span>\n            <\/div>\n            \u00d7 100 = 84%\n            \n            <p><strong>Large Department:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">1,600<\/span>\n                <span class=\"denominator\">2,000<\/span>\n            <\/div>\n            \u00d7 100 = 80%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Satisfaction Score Calculator<\/h3>\n        \n        <!-- Rating Scale Section -->\n        <div class=\"category-group\">\n            <h4>Rating Scale<\/h4>\n            <div class=\"input-group\">\n                <label for=\"minRating\">Minimum Rating:<\/label>\n                <input type=\"number\" id=\"minRating\" min=\"0\" step=\"1\" value=\"1\" placeholder=\"Enter minimum rating\">\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"maxRating\">Maximum Rating:<\/label>\n                <input type=\"number\" id=\"maxRating\" min=\"1\" step=\"1\" value=\"5\" placeholder=\"Enter maximum rating\">\n            <\/div>\n        <\/div>\n        \n        <!-- Survey Results Section -->\n        <div class=\"category-group\">\n            <h4>Survey Results<\/h4>\n            <div class=\"input-group\">\n                <label for=\"totalScore\">Total Satisfaction Score:<\/label>\n                <input type=\"number\" id=\"totalScore\" min=\"0\" step=\"1\" placeholder=\"Enter total satisfaction score\">\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"respondents\">Number of Respondents:<\/label>\n                <input type=\"number\" id=\"respondents\" min=\"0\" step=\"1\" placeholder=\"Enter number of respondents\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateSatisfactionScore()\" class=\"calculate-button\">Calculate Satisfaction Score<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Score<\/div>\n                    <div id=\"totalScoreDisplay\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Maximum Possible<\/div>\n                    <div id=\"maxPossibleScore\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Satisfaction Score<\/div>\n                    <div id=\"satisfactionScore\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"progress-bar\">\n                <div id=\"progressFill\" class=\"progress-fill\" style=\"width: 0%\"><\/div>\n            <\/div>\n            \n            <div id=\"satisfactionLevel\" class=\"satisfaction-level\"><\/div>\n            \n            <div class=\"interpretation-guide\">\n                <h4>Satisfaction Level Guide<\/h4>\n                <div class=\"guide-item\">\n                    <span>Below 70%<\/span>\n                    <span>Needs immediate attention<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>70-85%<\/span>\n                    <span>Moderate satisfaction<\/span>\n                <\/div>\n                <div class=\"guide-item\">\n                    <span>Above 85%<\/span>\n                    <span>High satisfaction<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateSatisfactionScore() {\n    \/\/ Get input values\n    const minRating = parseInt(document.getElementById('minRating').value) || 1;\n    const maxRating = parseInt(document.getElementById('maxRating').value) || 5;\n    const totalScore = parseInt(document.getElementById('totalScore').value) || 0;\n    const respondents = parseInt(document.getElementById('respondents').value) || 0;\n    \n    \/\/ Validate inputs\n    if (maxRating <= minRating) {\n        alert('Maximum rating must be greater than minimum rating');\n        return;\n    }\n    \n    if (respondents <= 0) {\n        alert('Please enter a valid number of respondents');\n        return;\n    }\n    \n    \/\/ Calculate maximum possible score\n    const maxPossible = respondents * maxRating;\n    \n    \/\/ Calculate satisfaction percentage\n    const satisfactionPercentage = (totalScore \/ maxPossible) * 100;\n    \n    \/\/ Update displays\n    document.getElementById('totalScoreDisplay').textContent = totalScore;\n    document.getElementById('maxPossibleScore').textContent = maxPossible;\n    \n    \/\/ Update satisfaction score with color coding\n    const scoreElement = document.getElementById('satisfactionScore');\n    scoreElement.textContent = satisfactionPercentage.toFixed(1) + '%';\n    \n    \/\/ Remove any existing status classes\n    scoreElement.classList.remove(\n        'score-needs-attention',\n        'score-moderate',\n        'score-good'\n    );\n    \n    \/\/ Update progress bar\n    const progressFill = document.getElementById('progressFill');\n    progressFill.style.width = satisfactionPercentage + '%';\n    \n    \/\/ Add appropriate status class and message based on percentage\n    const satisfactionLevel = document.getElementById('satisfactionLevel');\n    let statusClass = '';\n    let levelClass = '';\n    let message = '';\n    let fillColor = '';\n    \n    if (satisfactionPercentage < 70) {\n        statusClass = 'score-needs-attention';\n        levelClass = 'level-needs-attention';\n        message = '<strong>Benefits Satisfaction Needs Attention<\/strong><br>Consider conducting focus groups to identify improvement areas and reviewing current benefits package.';\n        fillColor = '#ffcdd2';\n    } else if (satisfactionPercentage < 85) {\n        statusClass = 'score-moderate';\n        levelClass = 'level-moderate';\n        message = '<strong>Moderate Benefits Satisfaction<\/strong><br>While satisfaction is acceptable, there may be opportunities to enhance specific benefits or improve communication about existing ones.';\n        fillColor = '#ffe0b2';\n    } else {\n        statusClass = 'score-good';\n        levelClass = 'level-good';\n        message = '<strong>High Benefits Satisfaction<\/strong><br>Employees are generally satisfied with the benefits package. Continue monitoring and maintaining current standards.';\n        fillColor = '#c8e6c9';\n    }\n    \n    scoreElement.classList.add(statusClass);\n    satisfactionLevel.className = `satisfaction-level ${levelClass}`;\n    satisfactionLevel.innerHTML = message;\n    progressFill.style.backgroundColor = fillColor;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .equity-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .fraction {\n        display: inline-block;\n        text-align: center;\n        vertical-align: middle;\n        margin: 0 5px;\n    }\n    \n    .numerator, .denominator {\n        padding: 3px 10px;\n        display: block;\n    }\n    \n    .denominator {\n        border-top: 2px solid #333;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-prefix {\n        position: relative;\n        display: flex;\n        align-items: center;\n    }\n    \n    .input-prefix input {\n        width: 100%;\n        padding: 8px 8px 8px 30px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .input-prefix::before {\n        content: \"$\";\n        position: absolute;\n        left: 12px;\n        top: 50%;\n        transform: translateY(-50%);\n        color: #666;\n    }\n    \n    .group-section {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #6200ea;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #5600e8;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .equity-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .equity-significant-gap {\n        background-color: #fbe9e7;\n        color: #c62828;\n        border: 1px solid #ffccbc;\n    }\n    \n    .equity-moderate-gap {\n        background-color: #fff3e0;\n        color: #ef6c00;\n        border: 1px solid #ffe0b2;\n    }\n    \n    .equity-near-parity {\n        background-color: #e8f5e9;\n        color: #2e7d32;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .ratio-value-significant-gap {\n        color: #c62828;\n    }\n    \n    .ratio-value-moderate-gap {\n        color: #ef6c00;\n    }\n    \n    .ratio-value-near-parity {\n        color: #2e7d32;\n    }\n    \n    .guidance-box {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .guidance-item {\n        display: flex;\n        justify-content: space-between;\n        padding: 8px 0;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .guidance-item:last-child {\n        border-bottom: none;\n    }\n    \n    @media (max-width: 768px) {\n        .metrics-grid {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"equity-calculator-container\">\n    <h2>Pay Equity Ratio Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Average minority salary \/ Average majority salary) \u00d7 100<\/code><\/p>\n        \n        <h4>Traditional Format:<\/h4>\n        <div class=\"fraction\">\n            <span class=\"numerator\">Average minority salary<\/span>\n            <span class=\"denominator\">Average majority salary<\/span>\n        <\/div>\n        \u00d7 100\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Department with $60,000 average minority salary and $62,500 average majority salary:<\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">$60,000<\/span>\n                <span class=\"denominator\">$62,500<\/span>\n            <\/div>\n            \u00d7 100 = 96%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Small Department:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">$55,000<\/span>\n                <span class=\"denominator\">$58,000<\/span>\n            <\/div>\n            \u00d7 100 = 94.8%\n            \n            <p><strong>Large Department:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">$82,000<\/span>\n                <span class=\"denominator\">$82,000<\/span>\n            <\/div>\n            \u00d7 100 = 100%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Pay Equity Calculator<\/h3>\n        \n        <!-- Group A Section -->\n        <div class=\"group-section\">\n            <h4>Group A Data<\/h4>\n            <div class=\"input-group\">\n                <label for=\"groupASalarySum\">Total Sum of Salaries:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"groupASalarySum\" min=\"0\" step=\"1000\" placeholder=\"Enter total sum of salaries\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"groupACount\">Number of Employees:<\/label>\n                <input type=\"number\" id=\"groupACount\" min=\"0\" step=\"1\" placeholder=\"Enter number of employees\">\n            <\/div>\n        <\/div>\n        \n        <!-- Group B Section -->\n        <div class=\"group-section\">\n            <h4>Group B Data<\/h4>\n            <div class=\"input-group\">\n                <label for=\"groupBSalarySum\">Total Sum of Salaries:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"groupBSalarySum\" min=\"0\" step=\"1000\" placeholder=\"Enter total sum of salaries\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"groupBCount\">Number of Employees:<\/label>\n                <input type=\"number\" id=\"groupBCount\" min=\"0\" step=\"1\" placeholder=\"Enter number of employees\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateEquityRatio()\" class=\"calculate-button\">Calculate Pay Equity Ratio<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Group A Average<\/div>\n                    <div id=\"groupAAverage\" class=\"metric-value\">$0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Group B Average<\/div>\n                    <div id=\"groupBAverage\" class=\"metric-value\">$0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Pay Equity Ratio<\/div>\n                    <div id=\"equityRatio\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div id=\"equityIndicator\" class=\"equity-indicator\"><\/div>\n            \n            <div class=\"guidance-box\">\n                <h4>Interpretation Guide<\/h4>\n                <div class=\"guidance-item\">\n                    <span>Below 95%<\/span>\n                    <span>Significant pay gap requiring immediate review<\/span>\n                <\/div>\n                <div class=\"guidance-item\">\n                    <span>95-97%<\/span>\n                    <span>Moderate gap needing attention<\/span>\n                <\/div>\n                <div class=\"guidance-item\">\n                    <span>97-103%<\/span>\n                    <span>Near pay parity<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction formatCurrency(amount) {\n    return new Intl.NumberFormat('en-US', {\n        style: 'currency',\n        currency: 'USD',\n        minimumFractionDigits: 0,\n        maximumFractionDigits: 0\n    }).format(amount);\n}\n\nfunction calculateEquityRatio() {\n    \/\/ Get input values\n    const groupASalarySum = parseFloat(document.getElementById('groupASalarySum').value) || 0;\n    const groupACount = parseInt(document.getElementById('groupACount').value) || 0;\n    const groupBSalarySum = parseFloat(document.getElementById('groupBSalarySum').value) || 0;\n    const groupBCount = parseInt(document.getElementById('groupBCount').value) || 0;\n    \n    \/\/ Validate inputs\n    if (groupACount <= 0 || groupBCount <= 0) {\n        alert('Please enter valid employee counts');\n        return;\n    }\n    \n    \/\/ Calculate averages\n    const groupAAverage = groupASalarySum \/ groupACount;\n    const groupBAverage = groupBSalarySum \/ groupBCount;\n    \n    \/\/ Calculate equity ratio\n    const equityRatio = (groupAAverage \/ groupBAverage) * 100;\n    \n    \/\/ Update displays\n    document.getElementById('groupAAverage').textContent = formatCurrency(groupAAverage);\n    document.getElementById('groupBAverage').textContent = formatCurrency(groupBAverage);\n    \n    \/\/ Update ratio with color coding\n    const ratioElement = document.getElementById('equityRatio');\n    ratioElement.textContent = equityRatio.toFixed(1) + '%';\n    \n    \/\/ Remove any existing status classes\n    ratioElement.classList.remove(\n        'ratio-value-significant-gap',\n        'ratio-value-moderate-gap',\n        'ratio-value-near-parity'\n    );\n    \n    \/\/ Add appropriate status class and message based on ratio\n    const equityIndicator = document.getElementById('equityIndicator');\n    let statusClass = '';\n    let indicatorClass = '';\n    let message = '';\n    \n    if (equityRatio < 95) {\n        statusClass = 'ratio-value-significant-gap';\n        indicatorClass = 'equity-significant-gap';\n        message = '<strong>Significant Pay Gap Identified<\/strong><br>Recommended actions: Conduct comprehensive pay analysis, review hiring and promotion practices, and develop action plan for addressing disparities.';\n    } else if (equityRatio < 97) {\n        statusClass = 'ratio-value-moderate-gap';\n        indicatorClass = 'equity-moderate-gap';\n        message = '<strong>Moderate Pay Gap Detected<\/strong><br>Consider reviewing compensation policies and conducting job-level analysis to identify potential areas for improvement.';\n    } else if (equityRatio <= 103) {\n        statusClass = 'ratio-value-near-parity';\n        indicatorClass = 'equity-near-parity';\n        message = '<strong>Near Pay Parity<\/strong><br>Continue monitoring and maintaining equitable compensation practices while staying vigilant for any emerging gaps.';\n    } else {\n        statusClass = 'ratio-value-significant-gap';\n        indicatorClass = 'equity-significant-gap';\n        message = '<strong>Reversed Pay Gap Identified<\/strong><br>While this indicates higher average compensation for Group A, any significant gap warrants review to ensure equitable practices.';\n    }\n    \n    ratioElement.classList.add(statusClass);\n    equityIndicator.className = `equity-indicator ${indicatorClass}`;\n    equityIndicator.innerHTML = message;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .salary-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .fraction {\n        display: inline-block;\n        text-align: center;\n        vertical-align: middle;\n        margin: 0 5px;\n    }\n    \n    .numerator, .denominator {\n        padding: 3px 10px;\n        display: block;\n    }\n    \n    .denominator {\n        border-top: 2px solid #333;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-prefix {\n        position: relative;\n        display: flex;\n        align-items: center;\n    }\n    \n    .input-prefix input {\n        width: 100%;\n        padding: 8px 8px 8px 30px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .input-prefix::before {\n        content: \"$\";\n        position: absolute;\n        left: 12px;\n        top: 50%;\n        transform: translateY(-50%);\n        color: #666;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #2196F3;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #1976D2;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .status-value-significantly-below {\n        color: #d32f2f;\n    }\n    \n    .status-value-below {\n        color: #f57c00;\n    }\n    \n    .status-value-market {\n        color: #388e3c;\n    }\n    \n    .status-value-above {\n        color: #0288d1;\n    }\n    \n    .status-value-significantly-above {\n        color: #7b1fa2;\n    }\n    \n    .market-position {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .position-significantly-below {\n        background-color: #ffebee;\n        color: #d32f2f;\n        border: 1px solid #ffcdd2;\n    }\n    \n    .position-below {\n        background-color: #fff3e0;\n        color: #f57c00;\n        border: 1px solid #ffe0b2;\n    }\n    \n    .position-market {\n        background-color: #e8f5e9;\n        color: #388e3c;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .position-above {\n        background-color: #e1f5fe;\n        color: #0288d1;\n        border: 1px solid #b3e5fc;\n    }\n    \n    .position-significantly-above {\n        background-color: #f3e5f5;\n        color: #7b1fa2;\n        border: 1px solid #e1bee7;\n    }\n    \n    .range-guide {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .range-item {\n        display: flex;\n        justify-content: space-between;\n        padding: 8px 0;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .range-item:last-child {\n        border-bottom: none;\n    }\n    \n    @media (max-width: 768px) {\n        .metrics-grid {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"salary-calculator-container\">\n    <h2>Employee to Market Salary Ratio Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Employee's current salary \/ Market median salary) \u00d7 100<\/code><\/p>\n        \n        <h4>Traditional Format:<\/h4>\n        <div class=\"fraction\">\n            <span class=\"numerator\">Employee's current salary<\/span>\n            <span class=\"denominator\">Market median salary<\/span>\n        <\/div>\n        \u00d7 100\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Employee salary of $65,000 compared to market median of $70,000:<\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">$65,000<\/span>\n                <span class=\"denominator\">$70,000<\/span>\n            <\/div>\n            \u00d7 100 = 92.9%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Entry Level Position:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">$45,000<\/span>\n                <span class=\"denominator\">$50,000<\/span>\n            <\/div>\n            \u00d7 100 = 90%\n            \n            <p><strong>Senior Position:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">$120,000<\/span>\n                <span class=\"denominator\">$100,000<\/span>\n            <\/div>\n            \u00d7 100 = 120%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Salary Ratio Calculator<\/h3>\n        \n        <div class=\"category-group\">\n            <h4>Salary Information<\/h4>\n            <div class=\"input-group\">\n                <label for=\"employeeSalary\">Employee's Annual Salary:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"employeeSalary\" min=\"0\" step=\"1000\" placeholder=\"Enter employee's salary\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"marketSalary\">Market Median Salary:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"marketSalary\" min=\"0\" step=\"1000\" placeholder=\"Enter market median salary\">\n                <\/div>\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateSalaryRatio()\" class=\"calculate-button\">Calculate Salary Ratio<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Employee Salary<\/div>\n                    <div id=\"employeeSalaryDisplay\" class=\"metric-value\">$0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Market Salary<\/div>\n                    <div id=\"marketSalaryDisplay\" class=\"metric-value\">$0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Salary Ratio<\/div>\n                    <div id=\"salaryRatio\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div id=\"marketPosition\" class=\"market-position\"><\/div>\n            \n            <div class=\"range-guide\">\n                <h4>Market Position Ranges<\/h4>\n                <div class=\"range-item\">\n                    <span>Below 80%<\/span>\n                    <span>Significantly below market rate<\/span>\n                <\/div>\n                <div class=\"range-item\">\n                    <span>80-90%<\/span>\n                    <span>Moderately below market rate<\/span>\n                <\/div>\n                <div class=\"range-item\">\n                    <span>90-110%<\/span>\n                    <span>At market rate<\/span>\n                <\/div>\n                <div class=\"range-item\">\n                    <span>110-120%<\/span>\n                    <span>Above market rate<\/span>\n                <\/div>\n                <div class=\"range-item\">\n                    <span>Above 120%<\/span>\n                    <span>Significantly above market rate<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction formatCurrency(amount) {\n    return new Intl.NumberFormat('en-US', {\n        style: 'currency',\n        currency: 'USD',\n        minimumFractionDigits: 0,\n        maximumFractionDigits: 0\n    }).format(amount);\n}\n\nfunction calculateSalaryRatio() {\n    \/\/ Get input values\n    const employeeSalary = parseFloat(document.getElementById('employeeSalary').value) || 0;\n    const marketSalary = parseFloat(document.getElementById('marketSalary').value) || 0;\n    \n    \/\/ Validate inputs\n    if (marketSalary <= 0) {\n        alert('Please enter a valid market salary');\n        return;\n    }\n    \n    \/\/ Calculate ratio\n    const ratio = (employeeSalary \/ marketSalary) * 100;\n    \n    \/\/ Update displays\n    document.getElementById('employeeSalaryDisplay').textContent = formatCurrency(employeeSalary);\n    document.getElementById('marketSalaryDisplay').textContent = formatCurrency(marketSalary);\n    \n    \/\/ Update ratio with color coding\n    const ratioElement = document.getElementById('salaryRatio');\n    ratioElement.textContent = ratio.toFixed(1) + '%';\n    \n    \/\/ Remove any existing status classes\n    ratioElement.classList.remove(\n        'status-value-significantly-below',\n        'status-value-below',\n        'status-value-market',\n        'status-value-above',\n        'status-value-significantly-above'\n    );\n    \n    \/\/ Add appropriate status class and message based on ratio\n    const marketPosition = document.getElementById('marketPosition');\n    let statusClass = '';\n    let positionClass = '';\n    let message = '';\n    \n    if (ratio < 80) {\n        statusClass = 'status-value-significantly-below';\n        positionClass = 'position-significantly-below';\n        message = '<strong>Significantly Below Market Rate<\/strong><br>Consider immediate compensation review to address competitive positioning.';\n    } else if (ratio < 90) {\n        statusClass = 'status-value-below';\n        positionClass = 'position-below';\n        message = '<strong>Below Market Rate<\/strong><br>Review compensation strategy to improve market alignment.';\n    } else if (ratio <= 110) {\n        statusClass = 'status-value-market';\n        positionClass = 'position-market';\n        message = '<strong>At Market Rate<\/strong><br>Compensation is aligned with market expectations.';\n    } else if (ratio <= 120) {\n        statusClass = 'status-value-above';\n        positionClass = 'position-above';\n        message = '<strong>Above Market Rate<\/strong><br>Compensation exceeds typical market rates.';\n    } else {\n        statusClass = 'status-value-significantly-above';\n        positionClass = 'position-significantly-above';\n        message = '<strong>Significantly Above Market Rate<\/strong><br>Compensation is well above market standards.';\n    }\n    \n    ratioElement.classList.add(statusClass);\n    marketPosition.className = `market-position ${positionClass}`;\n    marketPosition.innerHTML = message;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .turnover-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #e6f3ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .fraction {\n        display: inline-block;\n        text-align: center;\n        vertical-align: middle;\n        margin: 0 5px;\n    }\n    \n    .numerator, .denominator {\n        padding: 3px 10px;\n        display: block;\n    }\n    \n    .denominator {\n        border-top: 2px solid #333;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .calculator-section {\n        background-color: #e6f3ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .separation-type {\n        background-color: #f8f9fa;\n        padding: 10px;\n        margin-bottom: 10px;\n        border-radius: 4px;\n    }\n    \n    .included-list, .excluded-list {\n        padding: 10px;\n        margin: 10px 0;\n        border-radius: 4px;\n    }\n    \n    .included-list {\n        background-color: #e8f5e9;\n        border: 1px solid #c8e6c9;\n    }\n    \n    .excluded-list {\n        background-color: #ffebee;\n        border: 1px solid #ffcdd2;\n    }\n    \n    .calculate-button {\n        background-color: #0066cc;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #0052a3;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .status-value-healthy {\n        color: #155724;\n    }\n    \n    .status-value-warning {\n        color: #856404;\n    }\n    \n    .status-value-critical {\n        color: #dc3545;\n    }\n    \n    .sustainability-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .status-healthy {\n        background-color: #d4edda;\n        color: #155724;\n        border: 1px solid #c3e6cb;\n    }\n    \n    .status-warning {\n        background-color: #fff3cd;\n        color: #856404;\n        border: 1px solid #ffeeba;\n    }\n    \n    .status-critical {\n        background-color: #f8d7da;\n        color: #721c24;\n        border: 1px solid #f5c6cb;\n    }\n    \n    .benchmark-box {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .benchmark-item {\n        display: flex;\n        justify-content: space-between;\n        padding: 8px 0;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .benchmark-item:last-child {\n        border-bottom: none;\n    }\n<\/style>\n\n<div class=\"turnover-calculator-container\">\n    <h2>Voluntary Turnover Rate Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Number of voluntary separations \/ Total number of employees) \u00d7 100<\/code><\/p>\n        \n        <h4>Traditional Format:<\/h4>\n        <div class=\"fraction\">\n            <span class=\"numerator\">Number of voluntary separations<\/span>\n            <span class=\"denominator\">Total number of employees<\/span>\n        <\/div>\n        \u00d7 100\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Company with 25 voluntary separations and 500 total employees:<\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">25<\/span>\n                <span class=\"denominator\">500<\/span>\n            <\/div>\n            \u00d7 100 = 5%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Small Company:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">3<\/span>\n                <span class=\"denominator\">50<\/span>\n            <\/div>\n            \u00d7 100 = 6%\n            \n            <p><strong>Large Company:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">240<\/span>\n                <span class=\"denominator\">3,000<\/span>\n            <\/div>\n            \u00d7 100 = 8%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Voluntary Turnover Calculator<\/h3>\n        \n        <!-- Separation Types Reference -->\n        <div class=\"category-group\">\n            <h4>Separation Types<\/h4>\n            <div class=\"included-list\">\n                <strong>Include in calculation:<\/strong>\n                <ul>\n                    <li>Resignations<\/li>\n                    <li>Retirements<\/li>\n                    <li>Career changes<\/li>\n                    <li>Personal reasons<\/li>\n                <\/ul>\n            <\/div>\n            <div class=\"excluded-list\">\n                <strong>Exclude from calculation:<\/strong>\n                <ul>\n                    <li>Layoffs<\/li>\n                    <li>Terminations for cause<\/li>\n                    <li>Contract endings<\/li>\n                    <li>Internal transfers<\/li>\n                <\/ul>\n            <\/div>\n        <\/div>\n        \n        <!-- Employee Numbers Section -->\n        <div class=\"category-group\">\n            <h4>Employee Numbers<\/h4>\n            <div class=\"input-group\">\n                <label for=\"voluntarySeparations\">Number of Voluntary Separations:<\/label>\n                <input type=\"number\" id=\"voluntarySeparations\" min=\"0\" step=\"1\" placeholder=\"Enter number of voluntary separations\">\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"totalEmployees\">Total Number of Employees:<\/label>\n                <input type=\"number\" id=\"totalEmployees\" min=\"0\" step=\"1\" placeholder=\"Enter total number of employees\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateVoluntaryTurnover()\" class=\"calculate-button\">Calculate Voluntary Turnover Rate<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Voluntary Separations<\/div>\n                    <div id=\"separationsCount\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Employees<\/div>\n                    <div id=\"employeeCount\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Voluntary Turnover Rate<\/div>\n                    <div id=\"turnoverRate\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div id=\"sustainabilityIndicator\" class=\"sustainability-indicator\"><\/div>\n            \n            <div class=\"benchmark-box\">\n                <h4>Industry Benchmarks for Voluntary Turnover<\/h4>\n                <div class=\"benchmark-item\">\n                    <span>Healthy Rate<\/span>\n                    <span>< 8%<\/span>\n                <\/div>\n                <div class=\"benchmark-item\">\n                    <span>Warning Zone<\/span>\n                    <span>8% - 15%<\/span>\n                <\/div>\n                <div class=\"benchmark-item\">\n                    <span>Critical Zone<\/span>\n                    <span>> 15%<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateVoluntaryTurnover() {\n    \/\/ Get input values\n    const voluntarySeparations = parseInt(document.getElementById('voluntarySeparations').value) || 0;\n    const totalEmployees = parseInt(document.getElementById('totalEmployees').value) || 0;\n    \n    \/\/ Validate inputs\n    if (totalEmployees <= 0) {\n        alert('Please enter a valid number of total employees');\n        return;\n    }\n    \n    if (voluntarySeparations > totalEmployees) {\n        alert('Number of separations cannot exceed total employees');\n        return;\n    }\n    \n    \/\/ Calculate turnover rate\n    const turnoverRate = (voluntarySeparations \/ totalEmployees) * 100;\n    \n    \/\/ Update display\n    document.getElementById('separationsCount').textContent = voluntarySeparations;\n    document.getElementById('employeeCount').textContent = totalEmployees;\n    \n    \/\/ Update turnover rate with color coding\n    const turnoverRateElement = document.getElementById('turnoverRate');\n    turnoverRateElement.textContent = turnoverRate.toFixed(2) + '%';\n    \n    \/\/ Remove any existing status classes\n    turnoverRateElement.classList.remove('status-value-healthy', 'status-value-warning', 'status-value-critical');\n    \n    \/\/ Add appropriate status class based on turnover rate\n    let statusClass = '';\n    let statusMessage = '';\n    \n    if (turnoverRate <= 8) {\n        turnoverRateElement.classList.add('status-value-healthy');\n        statusClass = 'status-healthy';\n        statusMessage = '<strong>Healthy Voluntary Turnover Rate<\/strong><br>Your voluntary turnover rate is within a healthy range, indicating good employee satisfaction and retention.';\n    } else if (turnoverRate <= 15) {\n        turnoverRateElement.classList.add('status-value-warning');\n        statusClass = 'status-warning';\n        statusMessage = '<strong>Elevated Voluntary Turnover Rate<\/strong><br>Your voluntary turnover rate is somewhat high. Consider conducting stay interviews and reviewing engagement strategies.';\n    } else {\n        turnoverRateElement.classList.add('status-value-critical');\n        statusClass = 'status-critical';\n        statusMessage = '<strong>Critical Voluntary Turnover Rate<\/strong><br>Your voluntary turnover rate is concerning. Recommended actions: conduct exit interviews, review compensation packages, and assess workplace culture.';\n    }\n    \n    \/\/ Update sustainability indicator\n    const sustainabilityIndicator = document.getElementById('sustainabilityIndicator');\n    sustainabilityIndicator.className = `sustainability-indicator ${statusClass}`;\n    sustainabilityIndicator.innerHTML = statusMessage;\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .turnover-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #fff0f0;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .fraction {\n        display: inline-block;\n        text-align: center;\n        vertical-align: middle;\n        margin: 0 5px;\n    }\n    \n    .numerator, .denominator {\n        padding: 3px 10px;\n        display: block;\n    }\n    \n    .denominator {\n        border-top: 2px solid #333;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .grid-container {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n        gap: 20px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-item {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n    }\n    \n    .calculator-section {\n        background-color: #fff0f0;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #dc3545;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #c82333;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .status-value-healthy {\n        color: #155724;\n    }\n    \n    .status-value-warning {\n        color: #856404;\n    }\n    \n    .status-value-critical {\n        color: #dc3545;\n    }\n    \n    .sustainability-indicator {\n        margin-top: 20px;\n        padding: 15px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .status-healthy {\n        background-color: #d4edda;\n        color: #155724;\n        border: 1px solid #c3e6cb;\n    }\n    \n    .status-warning {\n        background-color: #fff3cd;\n        color: #856404;\n        border: 1px solid #ffeeba;\n    }\n    \n    .status-critical {\n        background-color: #f8d7da;\n        color: #721c24;\n        border: 1px solid #f5c6cb;\n    }\n    \n    .benchmark-box {\n        margin-top: 20px;\n        padding: 15px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .benchmark-item {\n        display: flex;\n        justify-content: space-between;\n        padding: 8px 0;\n        border-bottom: 1px solid #eee;\n    }\n    \n    .benchmark-item:last-child {\n        border-bottom: none;\n    }\n    \n    @media (max-width: 768px) {\n        .grid-container {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"turnover-calculator-container\">\n    <h2>Employee Turnover Rate Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Number of separations \/ Average number of employees) \u00d7 100<\/code><\/p>\n        \n        <h4>Traditional Format:<\/h4>\n        <div class=\"fraction\">\n            <span class=\"numerator\">Number of separations<\/span>\n            <span class=\"denominator\">Average number of employees<\/span>\n        <\/div>\n        \u00d7 100\n        \n        <div class=\"example-box\">\n            <h4>Average Employee Calculation:<\/h4>\n            <div class=\"fraction\">\n                <span class=\"numerator\">Beginning employees + Ending employees<\/span>\n                <span class=\"denominator\">2<\/span>\n            <\/div>\n            \n            <h4>Example Calculation:<\/h4>\n            <p>Company with 30 separations and average of 190 employees:<\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">30<\/span>\n                <span class=\"denominator\">190<\/span>\n            <\/div>\n            \u00d7 100 = 15.79%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Small Company:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">5<\/span>\n                <span class=\"denominator\">25<\/span>\n            <\/div>\n            \u00d7 100 = 20%\n            \n            <p><strong>Large Company:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">250<\/span>\n                <span class=\"denominator\">2,000<\/span>\n            <\/div>\n            \u00d7 100 = 12.5%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Turnover Rate Calculator<\/h3>\n        \n        <!-- Average Employee Calculation Section -->\n        <div class=\"category-group\">\n            <h4>Employee Count<\/h4>\n            <div class=\"input-group\">\n                <label for=\"beginningEmployees\">Beginning of Period Employee Count:<\/label>\n                <input type=\"number\" id=\"beginningEmployees\" min=\"0\" step=\"1\" placeholder=\"Enter number of employees at start\">\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"endingEmployees\">End of Period Employee Count:<\/label>\n                <input type=\"number\" id=\"endingEmployees\" min=\"0\" step=\"1\" placeholder=\"Enter number of employees at end\">\n            <\/div>\n        <\/div>\n        \n        <!-- Separations Section -->\n        <div class=\"category-group\">\n            <h4>Separations<\/h4>\n            <div class=\"input-group\">\n                <label for=\"totalSeparations\">Total Number of Separations:<\/label>\n                <input type=\"number\" id=\"totalSeparations\" min=\"0\" step=\"1\" placeholder=\"Enter number of employee separations\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateTurnoverRate()\" class=\"calculate-button\">Calculate Turnover Rate<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Separations<\/div>\n                    <div id=\"separationsCount\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Average Employees<\/div>\n                    <div id=\"averageEmployees\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Turnover Rate<\/div>\n                    <div id=\"turnoverRate\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            \n            <div id=\"sustainabilityIndicator\" class=\"sustainability-indicator\"><\/div>\n            \n            <div class=\"benchmark-box\">\n                <h4>Industry Benchmarks<\/h4>\n                <div class=\"benchmark-item\">\n                    <span>Healthy Rate<\/span>\n                    <span>< 10%<\/span>\n                <\/div>\n                <div class=\"benchmark-item\">\n                    <span>Warning Zone<\/span>\n                    <span>10% - 20%<\/span>\n                <\/div>\n                <div class=\"benchmark-item\">\n                    <span>Critical Zone<\/span>\n                    <span>> 20%<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"key-points grid-item\">\n        <h3>Key Points<\/h3>\n        <ul>\n            <li>Result is expressed as a percentage<\/li>\n            <li>Higher percentage indicates higher turnover rate<\/li>\n            <li>Can be calculated monthly, quarterly, or annually<\/li>\n            <li>Should account for all types of separations (voluntary and involuntary)<\/li>\n        <\/ul>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateTurnoverRate() {\n    \/\/ Get input values\n    const beginningEmployees = parseInt(document.getElementById('beginningEmployees').value) || 0;\n    const endingEmployees = parseInt(document.getElementById('endingEmployees').value) || 0;\n    const totalSeparations = parseInt(document.getElementById('totalSeparations').value) || 0;\n    \n    \/\/ Validate inputs\n    if (beginningEmployees <= 0 || endingEmployees <= 0) {\n        alert('Please enter valid employee counts');\n        return;\n    }\n    \n    \/\/ Calculate average number of employees\n    const averageEmployees = (beginningEmployees + endingEmployees) \/ 2;\n    \n    \/\/ Calculate turnover rate\n    const turnoverRate = (totalSeparations \/ averageEmployees) * 100;\n    \n    \/\/ Update display\n    document.getElementById('separationsCount').textContent = totalSeparations;\n    document.getElementById('averageEmployees').textContent = averageEmployees.toFixed(1);\n    \n    \/\/ Update turnover rate with color coding\n    const turnoverRateElement = document.getElementById('turnoverRate');\n    turnoverRateElement.textContent = turnoverRate.toFixed(2) + '%';\n    \n    \/\/ Remove any existing status classes\n    turnoverRateElement.classList.remove('status-value-healthy', 'status-value-warning', 'status-value-critical');\n    \n    \/\/ Add appropriate status class based on turnover rate\n    if (turnoverRate <= 10) {\n        turnoverRateElement.classList.add('status-value-healthy');\n    } else if (turnoverRate <= 20) {\n        turnoverRateElement.classList.add('status-value-warning');\n    } else {\n        turnoverRateElement.classList.add('status-value-critical');\n    }\n    \n    \/\/ Update sustainability indicator\n    const sustainabilityIndicator = document.getElementById('sustainabilityIndicator');\n    \n    if (turnoverRate <= 10) {\n        sustainabilityIndicator.className = 'sustainability-indicator status-healthy';\n        sustainabilityIndicator.innerHTML = '<strong>Healthy Turnover Rate<\/strong><br>Your turnover rate is within a sustainable range. This suggests effective retention strategies and healthy workplace culture.';\n    } else if (turnoverRate <= 20) {\n        sustainabilityIndicator.className = 'sustainability-indicator status-warning';\n        sustainabilityIndicator.innerHTML = '<strong>Monitor Turnover Rate<\/strong><br>Your turnover rate is elevated. Consider reviewing retention strategies and conducting stay interviews to identify improvement areas.';\n    } else {\n        sustainabilityIndicator.className = 'sustainability-indicator status-critical';\n        sustainabilityIndicator.innerHTML = '<strong>Critical Turnover Rate<\/strong><br>Your turnover rate is concerning. Immediate action recommended: conduct exit interviews, review compensation and benefits, and assess workplace culture.';\n    }\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .goals-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0fff0;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .fraction {\n        display: inline-block;\n        text-align: center;\n        vertical-align: middle;\n        margin: 0 5px;\n    }\n    \n    .numerator, .denominator {\n        padding: 3px 10px;\n        display: block;\n    }\n    \n    .denominator {\n        border-top: 2px solid #333;\n    }\n    \n    .example-box {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 8px;\n        margin: 10px 0;\n        border: 1px solid #ddd;\n    }\n    \n    .grid-container {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n        gap: 20px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-item {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n    }\n    \n    .calculator-section {\n        background-color: #f0fff0;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .category-group {\n        margin-bottom: 20px;\n        padding: 15px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        background-color: white;\n    }\n    \n    .calculate-button {\n        background-color: #4CAF50;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #45a049;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n        color: #4CAF50;\n    }\n    \n    .progress-bar {\n        width: 100%;\n        height: 20px;\n        background-color: #f0f0f0;\n        border-radius: 10px;\n        overflow: hidden;\n        margin-top: 10px;\n    }\n    \n    .progress-fill {\n        height: 100%;\n        background-color: #4CAF50;\n        transition: width 0.5s ease-in-out;\n    }\n    \n    @media (max-width: 768px) {\n        .grid-container {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"goals-calculator-container\">\n    <h2>Goals Achievement Ratio Calculator<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Number of goals achieved \/ Total number of goals) \u00d7 100<\/code><\/p>\n        \n        <h4>Traditional Format:<\/h4>\n        <div class=\"fraction\">\n            <span class=\"numerator\">Number of goals achieved<\/span>\n            <span class=\"denominator\">Total number of goals<\/span>\n        <\/div>\n        \u00d7 100\n        \n        <div class=\"example-box\">\n            <h4>Example Calculation:<\/h4>\n            <p>Project with 7 achieved goals out of 10 total goals:<\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">7<\/span>\n                <span class=\"denominator\">10<\/span>\n            <\/div>\n            \u00d7 100 = 70%\n            \n            <h4>More Examples:<\/h4>\n            <p><strong>Small Project:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">3<\/span>\n                <span class=\"denominator\">5<\/span>\n            <\/div>\n            \u00d7 100 = 60%\n            \n            <p><strong>Large Project:<\/strong><\/p>\n            <div class=\"fraction\">\n                <span class=\"numerator\">45<\/span>\n                <span class=\"denominator\">50<\/span>\n            <\/div>\n            \u00d7 100 = 90%\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Goals Achievement Calculator<\/h3>\n        \n        <!-- Project Goals Section -->\n        <div class=\"category-group\">\n            <h4>Project Goals<\/h4>\n            <div class=\"input-group\">\n                <label for=\"achievedGoals\">Goals Achieved:<\/label>\n                <input type=\"number\" id=\"achievedGoals\" min=\"0\" step=\"1\" placeholder=\"Enter number of achieved goals\">\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"totalGoals\">Total Goals:<\/label>\n                <input type=\"number\" id=\"totalGoals\" min=\"0\" step=\"1\" placeholder=\"Enter total number of goals\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateGoalsRatio()\" class=\"calculate-button\">Calculate Achievement Ratio<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Goals Achieved<\/div>\n                    <div id=\"totalAchieved\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Goals<\/div>\n                    <div id=\"totalSet\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Achievement Ratio<\/div>\n                    <div id=\"achievementRatio\" class=\"metric-value\">0%<\/div>\n                <\/div>\n            <\/div>\n            <div class=\"progress-bar\">\n                <div id=\"progressFill\" class=\"progress-fill\" style=\"width: 0%\"><\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"key-points grid-item\">\n        <h3>Key Points<\/h3>\n        <ul>\n            <li>Result is expressed as a percentage (0% to 100%)<\/li>\n            <li>100% indicates all goals were achieved<\/li>\n            <li>Formula can be applied to individual, team, or organizational goals<\/li>\n            <li>Can be calculated for different time periods (monthly, quarterly, annually)<\/li>\n        <\/ul>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateGoalsRatio() {\n    \/\/ Get input values\n    const achievedGoals = parseInt(document.getElementById('achievedGoals').value) || 0;\n    const totalGoals = parseInt(document.getElementById('totalGoals').value) || 0;\n    \n    \/\/ Validate inputs\n    if (totalGoals <= 0) {\n        alert('Please enter a valid number of total goals');\n        return;\n    }\n    \n    if (achievedGoals > totalGoals) {\n        alert('Achieved goals cannot exceed total goals');\n        return;\n    }\n    \n    \/\/ Calculate achievement ratio\n    const ratio = (achievedGoals \/ totalGoals) * 100;\n    \n    \/\/ Update display\n    document.getElementById('totalAchieved').textContent = achievedGoals;\n    document.getElementById('totalSet').textContent = totalGoals;\n    document.getElementById('achievementRatio').textContent = ratio.toFixed(1) + '%';\n    document.getElementById('progressFill').style.width = ratio + '%';\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .revenue-calculator-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-container {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n        gap: 20px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-item {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n    }\n    \n    .calculator-section {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-prefix {\n        position: relative;\n        display: flex;\n        align-items: center;\n    }\n    \n    .input-prefix input {\n        width: 100%;\n        padding: 8px 8px 8px 30px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .input-prefix::before {\n        content: attr(data-prefix);\n        position: absolute;\n        left: 12px;\n        top: 50%;\n        transform: translateY(-50%);\n        color: #666;\n        z-index: 1;\n        pointer-events: none;\n    }\n    \n    .sub-input {\n        margin-left: 20px;\n        margin-top: 10px;\n        padding-left: 10px;\n        border-left: 2px solid #ddd;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n        color: #0073aa;\n    }\n    \n    .toggle-switch {\n        margin-bottom: 10px;\n    }\n    \n    .toggle-switch input[type=\"checkbox\"] {\n        margin-right: 8px;\n    }\n    \n    @media (max-width: 768px) {\n        .grid-container {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"revenue-calculator-container\">\n    <h2>Revenue per Employee Formula<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>Total Revenue \/ Total Number of Employees<\/code><\/p>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Revenue per Employee Calculator<\/h3>\n        \n        <!-- Revenue Section -->\n        <div class=\"input-group\">\n            <h4>Revenue Details<\/h4>\n            <label for=\"annualRevenue\">Annual Revenue:<\/label>\n            <div class=\"input-prefix\" data-prefix=\"$\">\n                <input type=\"number\" id=\"annualRevenue\" min=\"0\" step=\"1000\" placeholder=\"Enter annual revenue\">\n            <\/div>\n            \n            <div class=\"toggle-switch\">\n                <input type=\"checkbox\" id=\"hasOneTimeRevenue\" onchange=\"toggleOneTimeRevenue()\">\n                <label for=\"hasOneTimeRevenue\">Include one-time revenue events?<\/label>\n            <\/div>\n            \n            <div class=\"sub-input\" id=\"oneTimeRevenueInput\" style=\"display: none;\">\n                <label for=\"oneTimeRevenue\">One-time Revenue Amount:<\/label>\n                <div class=\"input-prefix\" data-prefix=\"$\">\n                    <input type=\"number\" id=\"oneTimeRevenue\" min=\"0\" step=\"1000\" placeholder=\"Enter one-time revenue\">\n                <\/div>\n            <\/div>\n        <\/div>\n        \n        <!-- Employee Section -->\n        <div class=\"input-group\">\n            <h4>Employee Details<\/h4>\n            <label for=\"fullTimeEmployees\">Full-time Employees:<\/label>\n            <input type=\"number\" id=\"fullTimeEmployees\" min=\"0\" step=\"1\" placeholder=\"Enter number of full-time employees\">\n            \n            <div class=\"toggle-switch\">\n                <input type=\"checkbox\" id=\"hasPartTime\" onchange=\"togglePartTime()\">\n                <label for=\"hasPartTime\">Include part-time employees?<\/label>\n            <\/div>\n            \n            <div class=\"sub-input\" id=\"partTimeInput\" style=\"display: none;\">\n                <label for=\"partTimeEmployees\">Part-time Employees:<\/label>\n                <input type=\"number\" id=\"partTimeEmployees\" min=\"0\" step=\"1\" placeholder=\"Number of part-time employees\">\n                <label for=\"partTimeHours\">Average Hours per Week:<\/label>\n                <input type=\"number\" id=\"partTimeHours\" min=\"0\" max=\"40\" step=\"1\" placeholder=\"Average hours worked per week\">\n            <\/div>\n            \n            <div class=\"toggle-switch\">\n                <input type=\"checkbox\" id=\"hasContractors\" onchange=\"toggleContractors()\">\n                <label for=\"hasContractors\">Include contractors?<\/label>\n            <\/div>\n            \n            <div class=\"sub-input\" id=\"contractorsInput\" style=\"display: none;\">\n                <label for=\"contractors\">Number of Contractors:<\/label>\n                <input type=\"number\" id=\"contractors\" min=\"0\" step=\"1\" placeholder=\"Number of contractors\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculateRevenuePerEmployee()\" class=\"calculate-button\">Calculate Revenue per Employee<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Adjusted Revenue<\/div>\n                    <div id=\"totalRevenue\" class=\"metric-value\">$0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total FTE Count<\/div>\n                    <div id=\"totalFTE\" class=\"metric-value\">0<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Revenue per Employee<\/div>\n                    <div id=\"revenuePerEmployee\" class=\"metric-value\">$0<\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"key-points grid-item\">\n        <h3>Key Points<\/h3>\n        <ul>\n            <li>Result is expressed in currency per employee<\/li>\n            <li>Higher value indicates better revenue efficiency<\/li>\n            <li>Useful for comparing productivity across companies<\/li>\n            <li>Considers full-time equivalent (FTE) for accurate calculation<\/li>\n        <\/ul>\n    <\/div>\n<\/div>\n\n<script>\nfunction toggleOneTimeRevenue() {\n    const oneTimeInput = document.getElementById('oneTimeRevenueInput');\n    oneTimeInput.style.display = document.getElementById('hasOneTimeRevenue').checked ? 'block' : 'none';\n}\n\nfunction togglePartTime() {\n    const partTimeInput = document.getElementById('partTimeInput');\n    partTimeInput.style.display = document.getElementById('hasPartTime').checked ? 'block' : 'none';\n}\n\nfunction toggleContractors() {\n    const contractorsInput = document.getElementById('contractorsInput');\n    contractorsInput.style.display = document.getElementById('hasContractors').checked ? 'block' : 'none';\n}\n\nfunction formatCurrency(amount) {\n    return new Intl.NumberFormat('en-US', {\n        style: 'currency',\n        currency: 'USD',\n        minimumFractionDigits: 0,\n        maximumFractionDigits: 0\n    }).format(amount);\n}\n\nfunction calculateRevenuePerEmployee() {\n    \/\/ Get revenue values\n    const annualRevenue = parseFloat(document.getElementById('annualRevenue').value) || 0;\n    const oneTimeRevenue = document.getElementById('hasOneTimeRevenue').checked ? \n        (parseFloat(document.getElementById('oneTimeRevenue').value) || 0) : 0;\n    \n    \/\/ Calculate total revenue\n    const totalRevenue = annualRevenue + oneTimeRevenue;\n    \n    \/\/ Get employee counts\n    const fullTimeCount = parseFloat(document.getElementById('fullTimeEmployees').value) || 0;\n    \n    \/\/ Calculate part-time FTE\n    let partTimeFTE = 0;\n    if (document.getElementById('hasPartTime').checked) {\n        const partTimeCount = parseFloat(document.getElementById('partTimeEmployees').value) || 0;\n        const partTimeHours = parseFloat(document.getElementById('partTimeHours').value) || 0;\n        partTimeFTE = (partTimeCount * partTimeHours) \/ 40; \/\/ Assuming 40-hour work week\n    }\n    \n    \/\/ Get contractor count\n    let contractorCount = 0;\n    if (document.getElementById('hasContractors').checked) {\n        contractorCount = parseFloat(document.getElementById('contractors').value) || 0;\n    }\n    \n    \/\/ Calculate total FTE\n    const totalFTE = fullTimeCount + partTimeFTE + contractorCount;\n    \n    \/\/ Validate inputs\n    if (totalRevenue <= 0 || totalFTE <= 0) {\n        alert('Please enter valid revenue and employee numbers');\n        return;\n    }\n    \n    \/\/ Calculate revenue per employee\n    const revenuePerEmployee = totalRevenue \/ totalFTE;\n    \n    \/\/ Update display\n    document.getElementById('totalRevenue').textContent = formatCurrency(totalRevenue);\n    document.getElementById('totalFTE').textContent = totalFTE.toFixed(1);\n    document.getElementById('revenuePerEmployee').textContent = formatCurrency(revenuePerEmployee);\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .performance-index-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-container {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n        gap: 20px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-item {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n    }\n    \n    .calculator-section {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input, .input-group select {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .performance-meter {\n        width: 100%;\n        height: 20px;\n        background-color: #f0f0f0;\n        border-radius: 10px;\n        margin: 20px 0;\n        position: relative;\n        overflow: hidden;\n    }\n    \n    .performance-fill {\n        height: 100%;\n        background-color: #4caf50;\n        transition: width 0.3s ease;\n        position: relative;\n    }\n    \n    .performance-marker {\n        position: absolute;\n        width: 2px;\n        height: 20px;\n        background-color: #333;\n        left: 100%;\n        top: 0;\n    }\n    \n    .performance-scale {\n        display: flex;\n        justify-content: space-between;\n        margin-top: 5px;\n        font-size: 0.8em;\n        color: #666;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin: 20px 0;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n    }\n    \n    .performance-rating {\n        margin-top: 15px;\n        padding: 10px;\n        border-radius: 4px;\n        text-align: center;\n        font-weight: 500;\n    }\n    \n    .rating-exceptional {\n        background-color: #e8f5e9;\n        color: #2e7d32;\n    }\n    \n    .rating-good {\n        background-color: #e3f2fd;\n        color: #1565c0;\n    }\n    \n    .rating-average {\n        background-color: #fff3e0;\n        color: #ef6c00;\n    }\n    \n    .rating-below {\n        background-color: #ffebee;\n        color: #c62828;\n    }\n    \n    .input-prefix {\n        position: relative;\n        display: flex;\n        align-items: center;\n    }\n    \n    .input-prefix input {\n        width: 100%;\n        padding: 8px 8px 8px 30px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .input-prefix::before {\n        content: attr(data-prefix);\n        position: absolute;\n        left: 12px;\n        top: 50%;\n        transform: translateY(-50%);\n        color: #666;\n        z-index: 1;\n        pointer-events: none;\n    }\n    \n    @media (max-width: 768px) {\n        .grid-container {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"performance-index-container\">\n    <h2>Employee Performance Index<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Actual output \/ Expected output) \u00d7 100<\/code><\/p>\n    <\/div>\n    \n    <div class=\"grid-container\">\n        <div class=\"grid-item\">\n            <h4>Numerator:<\/h4>\n            <p>Actual output achieved<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Denominator:<\/h4>\n            <p>Expected or target output<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Multiplier:<\/h4>\n            <p>100 (to convert to percentage)<\/p>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Performance Index Calculator<\/h3>\n        \n        <div class=\"input-group\">\n            <label for=\"metricType\">Select Metric Type:<\/label>\n            <select id=\"metricType\" onchange=\"updateInputLabels()\">\n                <option value=\"units\">Production Units<\/option>\n                <option value=\"sales\">Sales Amount<\/option>\n                <option value=\"tasks\">Completed Tasks<\/option>\n                <option value=\"custom\">Custom Metric<\/option>\n            <\/select>\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"actualOutput\">Actual Output:<\/label>\n            <div class=\"input-prefix\" data-prefix=\"\" id=\"actualPrefix\">\n                <input type=\"number\" id=\"actualOutput\" min=\"0\" step=\"0.01\" placeholder=\"Enter actual output\">\n            <\/div>\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"expectedOutput\">Expected Output:<\/label>\n            <div class=\"input-prefix\" data-prefix=\"\" id=\"expectedPrefix\">\n                <input type=\"number\" id=\"expectedOutput\" min=\"0\" step=\"0.01\" placeholder=\"Enter expected output\">\n            <\/div>\n        <\/div>\n        \n        <button onclick=\"calculatePerformanceIndex()\" class=\"calculate-button\">Calculate Performance Index<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Performance Index<\/div>\n                    <div id=\"performanceIndex\" class=\"metric-value\">0%<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Variance<\/div>\n                    <div id=\"variance\" class=\"metric-value\">0<\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"performance-meter\">\n                <div id=\"performanceFill\" class=\"performance-fill\">\n                    <div class=\"performance-marker\"><\/div>\n                <\/div>\n            <\/div>\n            <div class=\"performance-scale\">\n                <span>0%<\/span>\n                <span>50%<\/span>\n                <span>100%<\/span>\n                <span>150%<\/span>\n            <\/div>\n            \n            <div id=\"performanceRating\" class=\"performance-rating\"><\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"key-points grid-item\">\n        <h3>Key Points<\/h3>\n        <ul>\n            <li>Result is expressed as a percentage<\/li>\n            <li>100% means target was exactly met<\/li>\n            <li>Above 100% indicates overachievement<\/li>\n            <li>Below 100% indicates underachievement<\/li>\n        <\/ul>\n    <\/div>\n<\/div>\n\n<script>\nfunction updateInputLabels() {\n    const metricType = document.getElementById('metricType').value;\n    const actualPrefix = document.getElementById('actualPrefix');\n    const expectedPrefix = document.getElementById('expectedPrefix');\n    \n    switch(metricType) {\n        case 'sales':\n            actualPrefix.setAttribute('data-prefix', '$');\n            expectedPrefix.setAttribute('data-prefix', '$');\n            break;\n        case 'units':\n        case 'tasks':\n            actualPrefix.setAttribute('data-prefix', '#');\n            expectedPrefix.setAttribute('data-prefix', '#');\n            break;\n        default:\n            actualPrefix.setAttribute('data-prefix', '');\n            expectedPrefix.setAttribute('data-prefix', '');\n    }\n}\n\nfunction calculatePerformanceIndex() {\n    const actualOutput = parseFloat(document.getElementById('actualOutput').value);\n    const expectedOutput = parseFloat(document.getElementById('expectedOutput').value);\n    \n    if (!actualOutput || !expectedOutput || expectedOutput <= 0) {\n        alert('Please enter valid numbers');\n        return;\n    }\n    \n    const performanceIndex = (actualOutput \/ expectedOutput) * 100;\n    const variance = actualOutput - expectedOutput;\n    const metricType = document.getElementById('metricType').value;\n    \n    \/\/ Update metrics\n    document.getElementById('performanceIndex').textContent = `${performanceIndex.toFixed(1)}%`;\n    document.getElementById('variance').textContent = formatVariance(variance, metricType);\n    \n    \/\/ Update performance meter (capped at 150% for visualization)\n    const fillWidth = Math.min(performanceIndex, 150);\n    document.getElementById('performanceFill').style.width = `${(fillWidth\/150)*100}%`;\n    \n    \/\/ Update performance rating\n    const ratingDiv = document.getElementById('performanceRating');\n    if (performanceIndex >= 120) {\n        ratingDiv.textContent = 'Exceptional Performance';\n        ratingDiv.className = 'performance-rating rating-exceptional';\n    } else if (performanceIndex >= 100) {\n        ratingDiv.textContent = 'Good Performance';\n        ratingDiv.className = 'performance-rating rating-good';\n    } else if (performanceIndex >= 80) {\n        ratingDiv.textContent = 'Average Performance';\n        ratingDiv.className = 'performance-rating rating-average';\n    } else {\n        ratingDiv.textContent = 'Below Target';\n        ratingDiv.className = 'performance-rating rating-below';\n    }\n}\n\nfunction formatVariance(variance, metricType) {\n    const prefix = metricType === 'sales' ? '$' : '';\n    const sign = variance >= 0 ? '+' : '';\n    return `${sign}${prefix}${variance.toFixed(1)}`;\n}\n\n\/\/ Initialize input labels\nupdateInputLabels();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .conversion-rate-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-container {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n        gap: 20px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-item {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n    }\n    \n    .calculator-section {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input, .input-group select {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin-top: 20px;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n        color: #0073aa;\n    }\n    \n    .benchmark-indicator {\n        width: 100%;\n        height: 20px;\n        background-color: #f0f0f0;\n        border-radius: 10px;\n        position: relative;\n        margin-top: 20px;\n    }\n    \n    .benchmark-marker {\n        position: absolute;\n        width: 4px;\n        height: 20px;\n        background-color: #0073aa;\n        border-radius: 2px;\n    }\n    \n    .benchmark-labels {\n        display: flex;\n        justify-content: space-between;\n        margin-top: 5px;\n        font-size: 0.8em;\n        color: #666;\n    }\n    \n    .industry-context {\n        margin-top: 15px;\n        padding: 10px;\n        background-color: #f8f9fa;\n        border-radius: 4px;\n        font-size: 0.9em;\n    }\n    \n    @media (max-width: 768px) {\n        .grid-container {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"conversion-rate-container\">\n    <h2>Recruitment Conversion Rate Formula<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Number of hires \/ Total applicants) \u00d7 100<\/code><\/p>\n    <\/div>\n    \n    <div class=\"grid-container\">\n        <div class=\"grid-item\">\n            <h4>Numerator:<\/h4>\n            <p>Number of candidates hired<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Denominator:<\/h4>\n            <p>Total number of job applicants<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Multiplier:<\/h4>\n            <p>100 (to convert to percentage)<\/p>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Conversion Rate Calculator<\/h3>\n        \n        <div class=\"input-group\">\n            <label for=\"industryType\">Industry:<\/label>\n            <select id=\"industryType\">\n                <option value=\"tech\">Technology<\/option>\n                <option value=\"finance\">Finance<\/option>\n                <option value=\"healthcare\">Healthcare<\/option>\n                <option value=\"retail\">Retail<\/option>\n                <option value=\"manufacturing\">Manufacturing<\/option>\n                <option value=\"other\">Other<\/option>\n            <\/select>\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"numHires\">Number of Successful Hires:<\/label>\n            <input type=\"number\" id=\"numHires\" min=\"0\" placeholder=\"Enter number of hires\">\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"totalApplicants\">Total Number of Applicants:<\/label>\n            <input type=\"number\" id=\"totalApplicants\" min=\"0\" placeholder=\"Enter total applicants\">\n        <\/div>\n        \n        <button onclick=\"calculateConversionRate()\" class=\"calculate-button\">Calculate Conversion Rate<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Conversion Rate<\/div>\n                    <div id=\"conversionRate\" class=\"metric-value\">0%<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Applications per Hire<\/div>\n                    <div id=\"applicationsPerHire\" class=\"metric-value\">0<\/div>\n                <\/div>\n            <\/div>\n            \n            <div class=\"benchmark-indicator\">\n                <div id=\"rateMarker\" class=\"benchmark-marker\"><\/div>\n            <\/div>\n            <div class=\"benchmark-labels\">\n                <span>0%<\/span>\n                <span>5%<\/span>\n                <span>10%<\/span>\n            <\/div>\n            \n            <div id=\"industryContext\" class=\"industry-context\"><\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"key-points grid-item\">\n        <h3>Key Points<\/h3>\n        <ul>\n            <li>Result is expressed as a percentage (0% to 100%)<\/li>\n            <li>Lower percentages are typical (usually 1% to 10%)<\/li>\n            <li>Rate varies by industry and position level<\/li>\n        <\/ul>\n    <\/div>\n    \n    <div class=\"examples-section\">\n        <h3>Additional Examples<\/h3>\n        <div class=\"grid-container\">\n            <div class=\"grid-item\">\n                <h4>Small Business:<\/h4>\n                <p>5 hires \/ 75 applicants \u00d7 100 = 6.67%<\/p>\n            <\/div>\n            <div class=\"grid-item\">\n                <h4>Large Corporation:<\/h4>\n                <p>150 hires \/ 3,000 applicants \u00d7 100 = 5%<\/p>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nconst industryBenchmarks = {\n    tech: { low: 2, avg: 6, high: 10 },\n    finance: { low: 1.5, avg: 4, high: 8 },\n    healthcare: { low: 2, avg: 5, high: 9 },\n    retail: { low: 3, avg: 7, high: 12 },\n    manufacturing: { low: 2.5, avg: 6, high: 10 },\n    other: { low: 2, avg: 5, high: 9 }\n};\n\nfunction calculateConversionRate() {\n    const numHires = parseInt(document.getElementById('numHires').value);\n    const totalApplicants = parseInt(document.getElementById('totalApplicants').value);\n    const industry = document.getElementById('industryType').value;\n    \n    if (!numHires || !totalApplicants || totalApplicants <= 0) {\n        alert('Please enter valid numbers');\n        return;\n    }\n    \n    if (numHires > totalApplicants) {\n        alert('Number of hires cannot exceed total applicants');\n        return;\n    }\n    \n    const conversionRate = (numHires \/ totalApplicants) * 100;\n    const applicationsPerHire = Math.round(totalApplicants \/ numHires);\n    \n    \/\/ Update metrics\n    document.getElementById('conversionRate').textContent = `${conversionRate.toFixed(2)}%`;\n    document.getElementById('applicationsPerHire').textContent = applicationsPerHire;\n    \n    \/\/ Update benchmark marker\n    const markerPosition = Math.min(Math.max(conversionRate * 10, 0), 100);\n    document.getElementById('rateMarker').style.left = `${markerPosition}%`;\n    \n    \/\/ Update industry context\n    const benchmark = industryBenchmarks[industry];\n    const contextDiv = document.getElementById('industryContext');\n    \n    if (conversionRate < benchmark.low) {\n        contextDiv.textContent = `Below average for ${industry} industry. Consider reviewing recruitment process.`;\n    } else if (conversionRate > benchmark.high) {\n        contextDiv.textContent = `Above average for ${industry} industry. Excellent conversion rate!`;\n    } else {\n        contextDiv.textContent = `Within normal range for ${industry} industry (${benchmark.low}% - ${benchmark.high}%).`;\n    }\n}\n\n\/\/ Add event listeners for real-time validation\ndocument.getElementById('numHires').addEventListener('input', function() {\n    const totalApplicants = parseInt(document.getElementById('totalApplicants').value);\n    if (parseInt(this.value) > totalApplicants && totalApplicants > 0) {\n        this.value = totalApplicants;\n    }\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Add this to your WordPress page using the Custom HTML block -->\n<style>\n    .completion-rate-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-container {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n        gap: 20px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-item {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n    }\n    \n    .calculator-section {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .metrics-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n        gap: 15px;\n        margin-top: 20px;\n    }\n    \n    .metric-card {\n        background-color: #fff;\n        padding: 15px;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n        text-align: center;\n    }\n    \n    .metric-title {\n        font-size: 0.9em;\n        color: #666;\n        margin-bottom: 5px;\n    }\n    \n    .metric-value {\n        font-size: 1.5em;\n        font-weight: bold;\n        color: #0073aa;\n    }\n    \n    .progress-bar {\n        width: 100%;\n        height: 20px;\n        background-color: #f0f0f0;\n        border-radius: 10px;\n        overflow: hidden;\n        margin-top: 20px;\n    }\n    \n    .progress-fill {\n        height: 100%;\n        background-color: #0073aa;\n        transition: width 0.3s ease;\n    }\n    \n    .performance-indicator {\n        margin-top: 10px;\n        font-weight: 500;\n    }\n    \n    .rate-good {\n        color: #4caf50;\n    }\n    \n    .rate-average {\n        color: #ff9800;\n    }\n    \n    .rate-poor {\n        color: #f44336;\n    }\n    \n    @media (max-width: 768px) {\n        .grid-container {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div class=\"completion-rate-container\">\n    <h2>Application Completion Rate Formula<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>(Number of completed applications \/ Number of started applications) \u00d7 100<\/code><\/p>\n    <\/div>\n    \n    <div class=\"grid-container\">\n        <div class=\"grid-item\">\n            <h4>Numerator:<\/h4>\n            <p>Total number of fully completed applications<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Denominator:<\/h4>\n            <p>Total number of started applications<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Multiplier:<\/h4>\n            <p>100 (to convert to percentage)<\/p>\n        <\/div>\n    <\/div>\n    \n    <div class=\"grid-item\">\n        <h3>Formula Breakdown<\/h3>\n        <h4>Components:<\/h4>\n        <ul>\n            <li><strong>Completed applications:<\/strong> Applications that reached the final submission stage<\/li>\n            <li><strong>Started applications:<\/strong> All applications where the user began the process<\/li>\n            <li><strong>Dropout rate:<\/strong> The inverse of completion rate (100% - completion rate)<\/li>\n        <\/ul>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Application Completion Rate Calculator<\/h3>\n        <div class=\"input-group\">\n            <label for=\"completedApps\">Number of Completed Applications:<\/label>\n            <input type=\"number\" id=\"completedApps\" min=\"0\" placeholder=\"Enter number of completed applications\">\n        <\/div>\n        <div class=\"input-group\">\n            <label for=\"startedApps\">Number of Started Applications:<\/label>\n            <input type=\"number\" id=\"startedApps\" min=\"0\" placeholder=\"Enter number of started applications\">\n        <\/div>\n        \n        <button onclick=\"calculateCompletionRate()\" class=\"calculate-button\">Calculate Rates<\/button>\n        \n        <div id=\"result\" class=\"result-display\">\n            <div class=\"progress-bar\">\n                <div id=\"progressFill\" class=\"progress-fill\"><\/div>\n            <\/div>\n            \n            <div class=\"metrics-grid\">\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Completion Rate<\/div>\n                    <div id=\"completionRate\" class=\"metric-value\">0%<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Dropout Rate<\/div>\n                    <div id=\"dropoutRate\" class=\"metric-value\">0%<\/div>\n                <\/div>\n                <div class=\"metric-card\">\n                    <div class=\"metric-title\">Total Dropouts<\/div>\n                    <div id=\"totalDropouts\" class=\"metric-value\">0<\/div>\n                <\/div>\n            <\/div>\n            \n            <div id=\"performanceIndicator\" class=\"performance-indicator\"><\/div>\n        <\/div>\n    <\/div>\n    \n    <div class=\"key-points grid-item\">\n        <h3>Key Points<\/h3>\n        <ul>\n            <li>Result is expressed as a percentage (0% to 100%)<\/li>\n            <li>Higher percentage indicates better completion rate<\/li>\n            <li>100% means all started applications were completed<\/li>\n            <li>Lower percentages may indicate issues in the application process<\/li>\n        <\/ul>\n    <\/div>\n<\/div>\n\n<script>\nfunction calculateCompletionRate() {\n    const completedApps = parseInt(document.getElementById('completedApps').value);\n    const startedApps = parseInt(document.getElementById('startedApps').value);\n    \n    if (!completedApps || !startedApps || startedApps <= 0) {\n        alert('Please enter valid numbers');\n        return;\n    }\n    \n    if (completedApps > startedApps) {\n        alert('Completed applications cannot exceed started applications');\n        return;\n    }\n    \n    const completionRate = (completedApps \/ startedApps) * 100;\n    const dropoutRate = 100 - completionRate;\n    const totalDropouts = startedApps - completedApps;\n    \n    \/\/ Update metrics\n    document.getElementById('completionRate').textContent = `${completionRate.toFixed(1)}%`;\n    document.getElementById('dropoutRate').textContent = `${dropoutRate.toFixed(1)}%`;\n    document.getElementById('totalDropouts').textContent = totalDropouts;\n    \n    \/\/ Update progress bar\n    document.getElementById('progressFill').style.width = `${completionRate}%`;\n    \n    \/\/ Update performance indicator\n    const indicator = document.getElementById('performanceIndicator');\n    if (completionRate >= 80) {\n        indicator.textContent = 'Excellent completion rate';\n        indicator.className = 'performance-indicator rate-good';\n    } else if (completionRate >= 60) {\n        indicator.textContent = 'Average completion rate';\n        indicator.className = 'performance-indicator rate-average';\n    } else {\n        indicator.textContent = 'Poor completion rate - consider reviewing application process';\n        indicator.className = 'performance-indicator rate-poor';\n    }\n}\n\n\/\/ Add event listeners for real-time validation\ndocument.getElementById('completedApps').addEventListener('input', function() {\n    const startedApps = parseInt(document.getElementById('startedApps').value);\n    if (parseInt(this.value) > startedApps && startedApps > 0) {\n        this.value = startedApps;\n    }\n});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- WordPress Cost Per Hire Calculator -->\n<style>\n    .cost-per-hire-container {\n        max-width: 1000px;\n        margin: 0 auto;\n        padding: 20px;\n        font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    }\n    \n    .formula-box {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-container {\n        display: grid;\n        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n        gap: 20px;\n        margin-bottom: 20px;\n    }\n    \n    .grid-item {\n        background-color: #f5f5f5;\n        padding: 20px;\n        border-radius: 8px;\n    }\n    \n    .calculator-section {\n        background-color: #f0f7ff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-top: 30px;\n    }\n    \n    .cost-breakdown {\n        background-color: #fff;\n        padding: 20px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n        border: 1px solid #ddd;\n    }\n    \n    .input-group {\n        margin-bottom: 15px;\n    }\n    \n    .input-group label {\n        display: block;\n        margin-bottom: 5px;\n        font-weight: 500;\n    }\n    \n    .input-group input {\n        width: 100%;\n        padding: 8px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        padding-left: 25px;\n    }\n    \n    .calculate-button {\n        background-color: #0073aa;\n        color: white;\n        padding: 10px 20px;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        margin-top: 10px;\n    }\n    \n    .calculate-button:hover {\n        background-color: #005177;\n    }\n    \n    .result-display {\n        margin-top: 15px;\n        font-weight: bold;\n        padding: 15px;\n        background-color: #fff;\n        border-radius: 4px;\n        border: 1px solid #ddd;\n    }\n    \n    .input-prefix {\n        position: relative;\n    }\n    \n    .input-prefix::before {\n        content: \"$\";\n        position: absolute;\n        left: 10px;\n        top: 50%;\n        transform: translateY(-50%);\n        color: #666;\n        z-index: 1;\n    }\n    \n    @media (max-width: 768px) {\n        .grid-container {\n            grid-template-columns: 1fr;\n        }\n    }\n<\/style>\n\n<div id=\"costPerHireCalc\" class=\"cost-per-hire-container\">\n    <h2>Cost per Hire Formula<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>Total recruitment costs \u00f7 Number of hires<\/code><\/p>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Cost per Hire Calculator<\/h3>\n        \n        <div class=\"cost-breakdown\">\n            <h4>Recruitment Costs Breakdown<\/h4>\n            \n            <div class=\"input-group\">\n                <label for=\"cph_externalCosts\">External Costs (Job Boards, Agency Fees, Advertising):<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"cph_externalCosts\" min=\"0\" step=\"0.01\" placeholder=\"0.00\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"cph_internalCosts\">Internal Costs (HR Salaries, Tools):<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"cph_internalCosts\" min=\"0\" step=\"0.01\" placeholder=\"0.00\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"cph_assessmentCosts\">Assessment and Testing Costs:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"cph_assessmentCosts\" min=\"0\" step=\"0.01\" placeholder=\"0.00\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"cph_backgroundCosts\">Background Check Fees:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"cph_backgroundCosts\" min=\"0\" step=\"0.01\" placeholder=\"0.00\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"input-group\">\n                <label for=\"cph_interviewCosts\">Interview-related Expenses:<\/label>\n                <div class=\"input-prefix\">\n                    <input type=\"number\" id=\"cph_interviewCosts\" min=\"0\" step=\"0.01\" placeholder=\"0.00\">\n                <\/div>\n            <\/div>\n            \n            <div class=\"total-costs\">\n                Total Recruitment Costs: <span id=\"cph_totalCosts\">$0.00<\/span>\n            <\/div>\n        <\/div>\n        \n        <div class=\"input-group\">\n            <label for=\"cph_numberOfHires\">Number of Successful Hires:<\/label>\n            <input type=\"number\" id=\"cph_numberOfHires\" min=\"1\" placeholder=\"Enter number of hires\">\n        <\/div>\n        \n        <button id=\"cph_calculateButton\" class=\"calculate-button\">Calculate Cost per Hire<\/button>\n        <div id=\"cph_result\" class=\"result-display\"><\/div>\n    <\/div>\n<\/div>\n\n<script type=\"text\/javascript\">\n(function() {\n    \/\/ Wait for DOM to be ready\n    function ready(fn) {\n        if (document.readyState !== 'loading') {\n            fn();\n        } else {\n            document.addEventListener('DOMContentLoaded', fn);\n        }\n    }\n    \n    ready(function() {\n        \/\/ Prefix all IDs to avoid conflicts\n        const calculator = {\n            formatCurrency: function(amount) {\n                return new Intl.NumberFormat('en-US', {\n                    style: 'currency',\n                    currency: 'USD'\n                }).format(amount);\n            },\n\n            updateTotalCosts: function() {\n                const externalCosts = parseFloat(document.getElementById('cph_externalCosts').value) || 0;\n                const internalCosts = parseFloat(document.getElementById('cph_internalCosts').value) || 0;\n                const assessmentCosts = parseFloat(document.getElementById('cph_assessmentCosts').value) || 0;\n                const backgroundCosts = parseFloat(document.getElementById('cph_backgroundCosts').value) || 0;\n                const interviewCosts = parseFloat(document.getElementById('cph_interviewCosts').value) || 0;\n                \n                const total = externalCosts + internalCosts + assessmentCosts + backgroundCosts + interviewCosts;\n                const totalCostsElement = document.getElementById('cph_totalCosts');\n                if (totalCostsElement) {\n                    totalCostsElement.textContent = this.formatCurrency(total);\n                }\n                return total;\n            },\n\n            calculateCostPerHire: function() {\n                const totalCosts = this.updateTotalCosts();\n                const numberOfHires = parseInt(document.getElementById('cph_numberOfHires').value);\n                const resultDiv = document.getElementById('cph_result');\n                \n                if (!numberOfHires || numberOfHires <= 0) {\n                    resultDiv.textContent = 'Please enter a valid number of hires';\n                    return;\n                }\n                \n                const costPerHire = totalCosts \/ numberOfHires;\n                let resultText = `Cost per Hire: ${this.formatCurrency(costPerHire)}`;\n                \n                if (costPerHire < 3000) {\n                    resultText += ' (Below average cost)';\n                } else if (costPerHire > 5000) {\n                    resultText += ' (Above average cost)';\n                } else {\n                    resultText += ' (Average cost range)';\n                }\n                \n                resultDiv.textContent = resultText;\n            },\n\n            init: function() {\n                \/\/ Add event listeners\n                const costInputs = ['externalCosts', 'internalCosts', 'assessmentCosts', 'backgroundCosts', 'interviewCosts'];\n                costInputs.forEach(inputId => {\n                    const element = document.getElementById('cph_' + inputId);\n                    if (element) {\n                        element.addEventListener('input', () => this.updateTotalCosts());\n                    }\n                });\n\n                const calculateButton = document.getElementById('cph_calculateButton');\n                if (calculateButton) {\n                    calculateButton.addEventListener('click', () => this.calculateCostPerHire());\n                }\n            }\n        };\n\n        \/\/ Initialize the calculator\n        calculator.init();\n    });\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Time to Fill Calculator for WordPress -->\n<div class=\"time-to-fill-container\" id=\"timeToFillApp\">\n    <h2>Time to Fill Position Formula<\/h2>\n    \n    <div class=\"formula-box\">\n        <h3>Formula Structure<\/h3>\n        <p><code>Date Position Filled - Date Position Opened = Number of Days to Fill<\/code><\/p>\n    <\/div>\n    \n    <div class=\"grid-container\">\n        <div class=\"grid-item\">\n            <h4>Component 1:<\/h4>\n            <p>Date position was filled (end date)<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Component 2:<\/h4>\n            <p>Date position was opened (start date)<\/p>\n        <\/div>\n        <div class=\"grid-item\">\n            <h4>Result:<\/h4>\n            <p>Number of calendar days taken to fill the position<\/p>\n        <\/div>\n    <\/div>\n    \n    <div class=\"calculator-section\">\n        <h3>Time to Fill Calculator<\/h3>\n        <div class=\"input-group\">\n            <label for=\"ttf_startDate\">Position Opening Date:<\/label>\n            <input type=\"date\" id=\"ttf_startDate\">\n        <\/div>\n        <div class=\"input-group\">\n            <label for=\"ttf_endDate\">Position Filled Date:<\/label>\n            <input type=\"date\" id=\"ttf_endDate\">\n        <\/div>\n        <button id=\"ttf_calculateBtn\" class=\"calculate-button\">Calculate Days to Fill<\/button>\n        <div id=\"ttf_ratioResult\" class=\"result-display\"><\/div>\n    <\/div>\n<\/div>\n\n<!-- Add this to your WordPress Customizer CSS or a Custom CSS plugin -->\n<style type=\"text\/css\">\n.time-to-fill-container {\n    max-width: 1000px;\n    margin: 0 auto;\n    padding: 20px;\n}\n\n.formula-box {\n    background-color: #f0f7ff;\n    padding: 20px;\n    border-radius: 8px;\n    margin-bottom: 20px;\n}\n\n.grid-container {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n    gap: 20px;\n    margin-bottom: 20px;\n}\n\n.grid-item {\n    background-color: #f5f5f5;\n    padding: 20px;\n    border-radius: 8px;\n}\n\n.calculator-section {\n    background-color: #f0f7ff;\n    padding: 20px;\n    border-radius: 8px;\n    margin-top: 30px;\n}\n\n.input-group {\n    margin-bottom: 15px;\n}\n\n.input-group label {\n    display: block;\n    margin-bottom: 5px;\n    font-weight: 500;\n}\n\n.input-group input[type=\"date\"] {\n    width: 100%;\n    padding: 8px;\n    border: 1px solid #ddd;\n    border-radius: 4px;\n}\n\n.calculate-button {\n    background-color: #0073aa;\n    color: white;\n    padding: 10px 20px;\n    border: none;\n    border-radius: 4px;\n    cursor: pointer;\n    margin-top: 10px;\n}\n\n.calculate-button:hover {\n    background-color: #005177;\n}\n\n.result-display {\n    margin-top: 15px;\n    font-weight: bold;\n    padding: 15px;\n    background-color: #fff;\n    border-radius: 4px;\n    border: 1px solid #ddd;\n}\n\n.error-message {\n    color: #dc3232;\n}\n\n@media (max-width: 768px) {\n    .grid-container {\n        grid-template-columns: 1fr;\n    }\n}\n<\/style>\n\n<script>\n(function() {\n    \/\/ Wait for DOM to be ready\n    document.addEventListener('DOMContentLoaded', function() {\n        \/\/ Get elements\n        const startDate = document.getElementById('ttf_startDate');\n        const endDate = document.getElementById('ttf_endDate');\n        const calculateBtn = document.getElementById('ttf_calculateBtn');\n        const resultDiv = document.getElementById('ttf_ratioResult');\n\n        \/\/ Set max date to today\n        const today = new Date().toISOString().split('T')[0];\n        if(startDate && endDate) {\n            startDate.setAttribute('max', today);\n            endDate.setAttribute('max', today);\n        }\n\n        \/\/ Calculate function\n        function calculateTimeToFill() {\n            if(!startDate || !endDate || !resultDiv) return;\n\n            const start = new Date(startDate.value);\n            const end = new Date(endDate.value);\n            \n            if (isNaN(start.getTime()) || isNaN(end.getTime())) {\n                resultDiv.textContent = 'Please select both dates';\n                resultDiv.classList.add('error-message');\n                return;\n            }\n            \n            if (end < start) {\n                resultDiv.textContent = 'Fill date cannot be earlier than opening date';\n                resultDiv.classList.add('error-message');\n                return;\n            }\n            \n            \/\/ Calculate the difference in days\n            const diffTime = end - start;\n            const diffDays = Math.ceil(diffTime \/ (1000 * 60 * 60 * 24)) + 1;\n            \n            resultDiv.classList.remove('error-message');\n            resultDiv.textContent = `Time to Fill: ${diffDays} days`;\n            \n            \/\/ Add context\n            if (diffDays <= 7) {\n                resultDiv.textContent += ' (Quick Fill)';\n            } else if (diffDays > 60) {\n                resultDiv.textContent += ' (Extended Search)';\n            }\n        }\n\n        \/\/ Add event listener\n        if(calculateBtn) {\n            calculateBtn.addEventListener('click', calculateTimeToFill);\n        }\n    });\n})();\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"ageRatioCalc2024\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: system-ui, -apple-system, sans-serif;\">\n    <!-- Main Container -->\n    <div style=\"background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin-bottom: 20px;\">\n        <h2 style=\"margin-top: 0;\">Age Group Ratio Calculator<\/h2>\n        \n        <!-- Formula Display -->\n        <div style=\"background: #e9ecef; padding: 15px; border-radius: 6px; text-align: center; font-weight: bold; margin-bottom: 20px;\">\n            Age Group Ratio = (Employees in Age Group \u00f7 Total Employees) \u00d7 100\n        <\/div>\n\n        <!-- Calculator Section -->\n        <div style=\"background: #f0f7ff; padding: 20px; border-radius: 8px; margin-bottom: 20px;\">\n            <div style=\"margin-bottom: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Select Age Group:\n                <\/label>\n                <select id=\"ageGroup2024\" style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n                    <option value=\"18-24\">18-24 years<\/option>\n                    <option value=\"25-34\">25-34 years<\/option>\n                    <option value=\"35-44\">35-44 years<\/option>\n                    <option value=\"45-54\">45-54 years<\/option>\n                    <option value=\"55+\">55+ years<\/option>\n                <\/select>\n            <\/div>\n            \n            <div style=\"margin-bottom: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Employees in Age Group:\n                <\/label>\n                <input type=\"number\" id=\"groupEmp2024\" min=\"0\" style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n            <\/div>\n            \n            <div style=\"margin-bottom: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Total Number of Employees:\n                <\/label>\n                <input type=\"number\" id=\"totalEmp2024\" min=\"0\" style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n            <\/div>\n            \n            <button onclick=\"calcAgeRatio2024()\" style=\"background: #0073aa; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 16px;\">\n                Calculate Ratio\n            <\/button>\n            \n            <div id=\"ratioResult2024\" style=\"margin-top: 15px; padding: 10px; background: #e9ecef; border-radius: 4px; text-align: center; font-weight: bold;\">\n                Enter values and click Calculate\n            <\/div>\n        <\/div>\n\n        <!-- Key Points -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px;\">\n            <h4 style=\"margin-top: 0;\">Key Points:<\/h4>\n            <ul style=\"margin: 0; padding-left: 20px;\">\n                <li style=\"margin-bottom: 8px;\">Result is expressed as a percentage (0% to 100%)<\/li>\n                <li style=\"margin-bottom: 8px;\">Higher percentage indicates larger proportion in age group<\/li>\n                <li>Sum of all age group percentages should equal 100%<\/li>\n            <\/ul>\n        <\/div>\n\n        <!-- Example -->\n        <div style=\"background: white; padding: 15px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n            <h4 style=\"margin-top: 0;\">Example:<\/h4>\n            <p>Company with 45 employees aged 25-34 out of 150 total employees:<\/p>\n            <ul style=\"margin: 0; padding-left: 20px;\">\n                <li>Calculation: (45 \u00f7 150) \u00d7 100 = 30%<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script>\nfunction calcAgeRatio2024() {\n    var groupEmp = parseInt(document.getElementById('groupEmp2024').value) || 0;\n    var totalEmp = parseInt(document.getElementById('totalEmp2024').value) || 0;\n    var ageGroup = document.getElementById('ageGroup2024').value;\n    var result = document.getElementById('ratioResult2024');\n    \n    if (groupEmp === 0 && totalEmp === 0) {\n        result.innerHTML = 'Please enter valid numbers';\n        return;\n    }\n    \n    if (totalEmp === 0) {\n        result.innerHTML = 'Total employees cannot be zero';\n        return;\n    }\n    \n    if (groupEmp > totalEmp) {\n        result.innerHTML = 'Age group employees cannot exceed total employees';\n        return;\n    }\n    \n    var ratio = (groupEmp \/ totalEmp) * 100;\n    result.innerHTML = 'Age Group ' + ageGroup + ' Ratio: ' + ratio.toFixed(2) + '%';\n}\n<\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- Gender Ratio Calculator -->\n<div class=\"wp-gender-ratio-calc\" style=\"max-width: 800px; margin: 20px auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;\">\n    <div style=\"background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin-bottom: 20px;\">\n        <h2 style=\"margin-top: 0; color: #23282d;\">Gender Ratio Calculator<\/h2>\n        \n        <div style=\"background: #e9ecef; padding: 15px; border-radius: 6px; text-align: center; font-weight: bold; margin-bottom: 20px;\">\n            Gender Ratio = (Female Employees \u00f7 Total Employees) \u00d7 100\n        <\/div>\n\n        <div style=\"margin-bottom: 20px;\">\n            <div style=\"margin-bottom: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Number of Female Employees:\n                <\/label>\n                <input type=\"number\" id=\"wpGenderCalcFemale\" min=\"0\" style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n            <\/div>\n            \n            <div style=\"margin-bottom: 15px;\">\n                <label style=\"display: block; margin-bottom: 5px; font-weight: 500;\">\n                    Total Number of Employees:\n                <\/label>\n                <input type=\"number\" id=\"wpGenderCalcTotal\" min=\"0\" style=\"width: 100%; padding: 8px; border: 1px solid #ced4da; border-radius: 4px; box-sizing: border-box;\">\n            <\/div>\n            \n            <button id=\"wpGenderCalcButton\" style=\"background: #0073aa; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 16px;\">\n                Calculate Ratio\n            <\/button>\n            \n            <div id=\"wpGenderCalcResult\" style=\"margin-top: 15px; padding: 10px; background: #e9ecef; border-radius: 4px; text-align: center; font-weight: bold;\">\n                Enter values and click Calculate\n            <\/div>\n        <\/div>\n\n        <div style=\"background: white; padding: 15px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">\n            <h4 style=\"margin-top: 0;\">Example:<\/h4>\n            <p>For a company with 40 female employees out of 100 total employees:<\/p>\n            <ul style=\"margin-left: 20px;\">\n                <li>Calculation: (40 \u00f7 100) \u00d7 100 = 40%<\/li>\n            <\/ul>\n        <\/div>\n    <\/div>\n<\/div>\n\n<script type=\"text\/javascript\">\n(function() {\n    document.getElementById('wpGenderCalcButton').addEventListener('click', function() {\n        var female = parseInt(document.getElementById('wpGenderCalcFemale').value) || 0;\n        var total = parseInt(document.getElementById('wpGenderCalcTotal').value) || 0;\n        var result = document.getElementById('wpGenderCalcResult');\n        \n        if (female === 0 && total === 0) {\n            result.innerHTML = 'Please enter valid numbers';\n            return;\n        }\n        \n        if (total === 0) {\n            result.innerHTML = 'Total employees cannot be zero';\n            return;\n        }\n        \n        if (female > total) {\n            result.innerHTML = 'Female employees cannot exceed total employees';\n            return;\n        }\n        \n        var ratio = (female \/ total) * 100;\n        result.innerHTML = 'Gender Ratio: ' + ratio.toFixed(2) + '%';\n    });\n})();\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div class=\"fb-background-color\">\n\t\t\t  <div \n\t\t\t  \tclass = \"fb-comments\" \n\t\t\t  \tdata-href = \"https:\/\/ashrafimahbub.com\/?p=947\"\n\t\t\t  \tdata-numposts = \"10\"\n\t\t\t  \tdata-lazy = \"true\"\n\t\t\t\tdata-colorscheme = \"light\"\n\t\t\t\tdata-order-by = \"social\"\n\t\t\t\tdata-mobile=true>\n\t\t\t  <\/div><\/div>\n\t\t  <style>\n\t\t    .fb-background-color {\n\t\t\t\tbackground: #ffffff !important;\n\t\t\t}\n\t\t\t.fb_iframe_widget_fluid_desktop iframe {\n\t\t\t    width: 320px !important;\n\t\t\t}\n\t\t  <\/style>\n\t\t  ","protected":false},"excerpt":{"rendered":"<p>HR Analytics Calculator is in Testing Stages. It May Make Mistakes! CAUTION! Interactive Profit per Employee Calculator Understanding the Metric The Profit per Employee metric reveals your company&#8217;s operational efficiency and productivity: Profit per Employee = Net Profit Per Year \u00f7 Average Number of Employees Throughout the Year Net Profit &#8211; Per Year ($) \u24d8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1160,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,263,54],"tags":[255,250,245,259,243,252,247,260,244,26,251,254,258,246,248,256,257,253,249],"class_list":["post-947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all","category-hr-analytics","category-hr-articles","tag-compensation-metrics","tag-diversity-metrics","tag-employee-analytics","tag-engagement-metrics","tag-hr-analytics","tag-hr-data","tag-hr-formulas","tag-hr-kpis","tag-hr-metrics","tag-human-resources","tag-people-analytics","tag-performance-metrics","tag-productivity-metrics","tag-recruitment-metrics","tag-retention-metrics","tag-safety-metrics","tag-talent-analytics","tag-training-metrics","tag-workforce-analytics"],"_links":{"self":[{"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=\/wp\/v2\/posts\/947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=947"}],"version-history":[{"count":77,"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=\/wp\/v2\/posts\/947\/revisions"}],"predecessor-version":[{"id":1047,"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=\/wp\/v2\/posts\/947\/revisions\/1047"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=\/wp\/v2\/media\/1160"}],"wp:attachment":[{"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ashrafimahbub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}