<!DOCTYPE html>
<html lang="en">
    <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
   
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content=" 7th CPC salary calculator for UP Govt Employee, UP primary teacher salary calculator, UP Junior Teacher salary, UP Lekhpal salary, UP constable salary, UP PAC salay, UP RVUNL Salary, UP State University Salary, UP PCS salary, UP Sachivalay Lalary, UP RO Salary, UP ARO Salary, UP SDM Salary, UP Tehsildar Salary, UP SI Salary, 
 
                   
Acharya Narendra Deva University of Agriculture and Technology Faizabad Salary, 
Banda University of Agriculture and Technology	Banda	Salary, 
Bhatkhande Sanskriti VishwavidyalayaSalary, 	
Bundelkhand University	Jhansi	Salary, 	
Chandra Shekhar Azad University of Agriculture & Technology	Kanpur	Salary, 
Chaudhary Charan Singh University	Meerut	Salary, 
Chhatrapati Shahu Ji Maharaj University	Kanpur	Salary, 
Deen Dayal Upadhyay Gorakhpur University	GorakhpurSalary, 	
Dr. A.P.J. Abdul Kalam Technical University	Lucknow	
Dr. B. R. Ambedkar University	Agra	Salary, 
Dr. Ram Manohar Lohia Avadh University	FaizabadSalary, 	
Dr. Ram Manohar Lohia Institute of Medical Sciences	Lucknow	Salary, 
Dr. Ram Manohar Lohiya National Law University	Lucknow	Salary, 
DSM National Rehabilitation University	Lucknow	Salary, 
Gautam Buddha University	Greater Noida, Gautam Budh NagarSalary, 	
Harcourt Butler Technical University	Kanpur	Salary, 
Jananayak Chandrashekhar University	Ballia	Salary, 
Khwaja Moinuddin Chishti Language University	Lucknow	Salary, 
King George's Medical University	Lucknow	Salary, 	
Madan Mohan Malaviya University of Technology	Gorakhpur	Salary, 
Mahatma Gandhi Kashi Vidyapeeth	Varanasi	Salary, 
M. J. P. Rohilkhand University	Bareilly	Salary, 
Prof. Rajendra Singh (Rajju Bhaiya) University	Allahabad	Salary, 
Raja Mahendra Pratap Singh State University	Aligarh	Salary, 	
Sampurnanand Sanskrit University	Varanasi	Salary, 
Sardar Vallabhbhai Patel University of Agriculture and Technology	Meerut	Salary, 
Siddharth University	Siddharth Nagar	Salary, 
U.P. Pt. Deen Dayal Upadhyaya Veterinary Science University and Cattle Research Institute	Mathura	Salary, 
Uttar Pradesh Rajarshi Tandon Open University	Allahabad	Salary, 
University of Lucknow	LucknowSalary, 
Uttar Pradesh University of Medical Sciences	Saifai Etawah	Salary, 
Veer Bahadur Singh Purvanchal University	Jaunpur	Salary, 
                  
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
                   
               
" name="keywords"></meta>

    <style>
        .tntable {
            border: 1px solid #020103;
            border-collapse: collapse;
            padding: 5px;
            box-shadow: 5px 5px 5px #888888;
            text-align: center;
            width: 100%;
            margin-bottom: 20px;
        }

        .tntable th {
            border: 1px solid #020103;
            padding: 5px;
            background: #9704e6;
            color: white;
            text-align: center;
        }

        .tntable td {
            border: 1px solid #020103;
            padding: 5px;
            background: #FFFFFF;
        }

        select, button1 {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #f9f9f9;
        }

        button1 {
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
        }

        button1:hover {
            background-color: #45a049;
        }

        .result {
            display: none;
        }

        h2 {
            color: #333;
            margin-bottom: 20px;
        }

        .centered {
            text-align: center;
        }

        .input {
            margin: 5px;
            display: inline-block;
        }

        .error_msg {
            color: red;
        }

        .tntable {
            width: 100%;
            border-collapse: collapse;
        }

        .tntable th, .tntable td {
            border: 1px solid #ddd;
            padding: 8px;
        }

        .hidden {
            display: none;
        }
    </style>
</head>
<body>

    <table class="tntable">
        <colgroup>
            <col style="width: 65%;">
            <col style="width: 35%;">
        </colgroup>
        <tr>
            <th colspan="2">7th CPC Salary Calculator (UP Govt Employee)</th>
        </tr>
        <tr>
            <td>Select your Pay Level </td>
            <td>
                <select id="level" onchange="levelChanged(this)">
                    <option value="-1">Select...</option>
                    <option value="1">Level 1 (GP – 1800)</option>
                    <option value="2">Level 2 (GP – 1900)</option>
                    <option value="3">Level 3 (GP – 2000)</option>
                    <option value="4">Level 4 (GP – 2400)</option>
                    <option value="5">Level 5 (GP – 2800)</option>
                    <option value="6">Level 6 (GP – 4200)</option>
                    <option value="7">Level 7 (GP – 4600)</option>
                    <option value="8">Level 8 (GP – 4800)</option>
                    <option value="9">Level 9 (GP – 5400)</option>
                    <option value="10">Level 10 (GP – 5400)</option>
                 
                    <option value="11">Level 11 (GP – 6600)</option>
                  
                    <option value="12">Level 12 (GP – 7600)</option>
                
                    <option value="13">Level 13 (GP – 8700)</option>
                    <option value="A_13">Level 13A (GP – 8900)</option>

                    <option value="14">Level 14 (GP – 10000)</option>
                  
                          <option value="15">Level 15 </option>
  <option value="16">Level 16 </option>

    <option value="17">Level 17 </option>
      
   
                </select>
            </td>
        </tr>
        <tr>
            <td>Select Basic Pay  </td>
            <td>
                <select id="basic">
                    <option value="0">Select...</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>Select the type of your City for HRA</td>
            <td>
                <select id="hracity">
                    <option value="0">No HRA</option>
                    <option value="X">City A</option>
                    <option value="Y">City B</option>
                    <option value="Z">City C & Rural</option>
                </select>
            </td>
        </tr>
      
    <td>Select DA Percentage</td>
<td>
    <select id="daPercentage">
        <option value="0.53"selected>53% Current July 2024</option>
        <option value="0.56">56% Expected Jan 2025</option>
        <option value="0.57" >57% Expected Jan 2025</option>
    </select>
</td>
</tr>     
        <tr>
            <td colspan="2" style="text-align: right;">
                <button onclick="calculate()">Calculate</button>
            </td>
        </tr>
    </table>

    <table class="tntable result" id="result" style="display: none;">
        <colgroup>
            <col style="width: 65%;">
            <col style="width: 35%;">
        </colgroup>
        <tr>
            <th colspan="2">Salary from July 2024 (per month)</th>
        </tr>
        <tr>
            <td>Your Pay Level</td>
            <td><label id="selected-level"></label></td>
        </tr>
        <tr>
            <td>Basic Pay</td>
            <td><label id="selected-pay"></label></td>
        </tr>
        <tr>
            <td>DA <small>(53%: Current, 56% & 57%: Expected)*</small></td>
            <td><label id="da"></label></td>
        </tr>
        <tr>
            <td>HRA </td>
            <td><label id="hra1"></label></td>
        </tr>
       <tr>
 

        <tr>
            <td>Other Allowances/Incomes (if any) <div id="allowanceGroup">
                    <button id="addAllowanceButton" onclick="addAllowance()">Add Allowance</button>
                    <button id="removeAllowanceButton" onclick="removeAllowance()">Remove Allowance</button>
                </div><div id="allowanceFields"></div></td>
            <td>
                
                <div id="allowanceSum">Total Allowances: ₹0</div>
            </td>
        </tr>
        <tr>
            <th>Gross Salary</th>
            <th><label id="total"></label></th>
        </tr>
        <tr>
            <td>NPS Contribution <input type="checkbox" id="include-nps" checked onchange="calculate()"></td>
            <td><label id="nps"></label></td>
        </tr>
        
        <tr>
            <td>Income Tax (New Regime) <input type="checkbox" id="new-regime" name="tax-regime" value="new" checked onchange="calculate()">
            </br> 
            <label id="incometaxAn"></label> <small><i>(approx) per annum</i></small>
            
            </td>
            <td><label id="income-tax"></label><small><i>(approx)</i></small></td>
        </tr>
        <tr>
            <td>Other Deductions (if any) <div id="deductionGroup">
                    <button id="addDeductionButton" onclick="addDeduction()">Add Deduction</button>
                    <button id="removeDeductionButton" onclick="removeDeduction()">Remove Deduction</button>
                </div>
                <div id="deductionFields"></div></td>
            <td>
                
                
                <div id="deductionSum">Total Deductions: ₹0</div>
            </td>
        </tr>
        <tr>
            <th>Net Salary</th>
            <th><label id="net-salary"></label></th>
        </tr>
        
        
        
     <tr> <td>  
        <label for="annualIncomeInput">Enter Annual Income<small> (to know actual Income Tax-new regime):</small> </label>
    <input type="number" id="annualIncomeInput" placeholder="Enter your annual income" />
</td><td> 
    <p id="annualIncomeTaxOutput"></p>
    <p id="monthlyIncomeTaxOutput"></p></td>
</tr>
        
        
    </table>

    <script>
        var payLevels = {
              1: [18000, 18500, 19100, 19700, 20300, 20900, 21500, 22100, 22800, 23500, 24200, 24900, 25600, 26400, 27200, 28000, 28800, 29700, 30600, 31500, 32400, 33400, 34400, 35400, 36500, 37600, 38700, 39900, 41100, 42300, 43600, 44900, 46200, 47600, 49000, 50500, 52000, 53600, 55200, 56900,],
                2: [19900, 20500, 21100, 21700, 22400, 23100, 23800, 24500, 25200, 26000, 26800, 27600, 28400, 29300, 30200, 31100, 32000, 33000, 34000, 35000, 36100, 37200, 38300, 39400, 40600, 41800, 43100, 44400, 45700, 47100, 48500, 50000, 51500, 53000, 54600, 56200, 57900, 59600, 61400, 63200,],
3: [21700, 22400, 23100, 23800, 24500, 25200, 26000, 26800, 27600, 28400, 29300, 30200, 31100, 32000, 33000, 34000, 35000, 36100, 37200, 38300, 39400, 40600, 41800, 43100, 44400, 45700, 47100, 48500, 50000, 51500, 53000, 54600, 56200, 57900, 59600, 61400, 63200, 65100, 67100, 69100,],
4: [25500, 26300, 27100, 27900, 28700, 29600, 30500, 31400, 32300, 33300, 34300, 35300, 36400, 37500, 38600, 39800, 41000, 42200, 43500, 44800, 46100, 47500, 48900, 50400, 51900, 53500, 55100, 56800, 58500, 60300, 62100, 64000, 65900, 67900, 69900, 72000, 74200, 76400, 78700, 81100,],
5: [29200, 30100, 31000, 31900, 32900, 33900, 34900, 35900, 37000, 38100, 39200, 40400, 41600, 42800, 44100, 45400, 46800, 48200, 49600, 51100, 52600, 54200, 55800, 57500, 59200, 61000, 62800, 64700, 66600, 68600, 70700, 72800, 75000, 77300, 79600, 82000, 84500, 87000, 89600, 92300,],
6: [35400, 36500, 37600, 38700, 39900, 41100, 42300, 43600, 44900, 46200, 47600, 49000, 50500, 52000, 53600, 55200, 56900, 58600, 60400, 62200, 64100, 66000, 68000, 70000, 72100, 74300, 76500, 78800, 81200, 83600, 86100, 88700, 91400, 94100, 96900, 99800, 102800, 105900, 109100, 112400,],
7: [44900, 46200, 47600, 49000, 50500, 52000, 53600, 55200, 56900, 58600, 60400, 62200, 64100, 66000, 68000, 70000, 72100, 74300, 76500, 78800, 81200, 83600, 86100, 88700, 91400, 94100, 96900, 99800, 102800, 105900, 109100, 112400, 115800, 119300, 122900, 126600, 130400, 134300, 138300, 142400,],
8: [47600, 49000, 50500, 52000, 53600, 55200, 56900, 58600, 60400, 62200, 64100, 66000, 68000, 70000, 72100, 74300, 76500, 78800, 81200, 83600, 86100, 88700, 91400, 94100, 96900, 99800, 102800, 105900, 109100, 112400, 115800, 119300, 122900, 126600, 130400, 134300, 138300, 142400, 146700, 151100,],
9: [53100, 54700, 56300, 58000, 59700, 61500, 63300, 65200, 67200, 69200, 71300, 73400, 75600, 77900, 80200, 82600, 85100, 87700, 90300, 93000, 95800, 98700, 101700, 104800, 107900, 111100, 114400, 117800, 121300, 124900, 128600, 132500, 136500, 140600, 144800, 149100, 153600, 158200, 162900, 151100,],
10: [56100, 57800, 59500, 61300, 63100, 65000, 67000, 69000, 71100, 73200, 75400, 77700, 80000, 82400, 84900, 87400, 90000, 92700, 95500, 98400, 101400, 104400, 107500, 110700, 114000, 117400, 120900, 124500, 128200, 132000, 136000, 140100, 144300, 148600, 153100, 157700, 162400, 167300, 172300, 177500,],
11: [67700, 69700, 71800, 74000, 76200, 78500, 80900, 83300, 85800, 88400, 91100, 93800, 96600, 99500, 102500, 105600, 108800, 112100, 115500, 119000, 122600, 126300, 130100, 134000, 138000, 142100, 146400, 150800, 155300, 160000, 164800, 169700, 174800, 180000, 185400, 191000, 196700, 202600, 208700],
12: [78800, 81200, 83600, 86100, 88700, 91400, 94100, 96900, 99800, 102800, 105900, 109100, 112400, 115800, 119300, 122900, 126600, 130400, 134300, 138300, 142400, 146700, 151100, 155600, 160300, 165100, 170100, 175200, 180500, 185900, 191500, 197200, 203100, 209200, 185400, 191000, 196700, 202600, 208700,],
13: [123100, 126800, 130600, 134500, 138500, 142700, 147000, 151400, 155900, 160600, 165400, 170400, 175500, 180800, 186200, 191800, 197600, 203500, 209600, 215900,],
A_13: [131100, 135000, 139100, 143300, 147600, 152000, 156600, 161300, 166100, 171100, 176200, 181500, 186900, 192500, 198300, 204200, 210300, 216600, ],
14: [144200, 148500, 153000, 157600, 162300, 167200, 172200, 177400, 182700, 188200, 193800, 199600, 205600, 211800, 218200,],
15: [182200,187700,193300,199100,205100,211300,217600,224100],
16: [205400,211600,217900,224400],
17: [225000],
 
        };

        function levelChanged(selectElem) {
            var level = selectElem.value;
            var basicArray = payLevels[level] || [];
            var $basicSelect = document.getElementById('basic');

            $basicSelect.innerHTML = '<option value="0">Select...</option>';
            for (var i = 0; i < basicArray.length; i++) {
                var option = document.createElement('option');
                option.value = basicArray[i];
                option.text = basicArray[i];
                $basicSelect.appendChild(option);
            }
        }

        let allowanceCount = 0;
        let deductionCount = 0;
        const maxFields = 10;

        function addAllowance() {
            if (allowanceCount < maxFields) {
                const container = document.getElementById('allowanceFields');
                
                const allowanceDiv = document.createElement('div');
                allowanceDiv.className = 'allowanceField';
                
                const nameInput = document.createElement('input');
                nameInput.type = 'text';
                nameInput.placeholder = 'Allowance Name ' + (allowanceCount + 1);
                nameInput.id = 'allowance-name-' + (allowanceCount + 1);
                
                const amountInput = document.createElement('input');
                amountInput.type = 'number';
                amountInput.placeholder = 'Amount ' + (allowanceCount + 1);
                amountInput.id = 'allowance-amount-' + (allowanceCount + 1);
                amountInput.oninput = calculate;
                
                allowanceDiv.appendChild(nameInput);
                allowanceDiv.appendChild(amountInput);
                container.appendChild(allowanceDiv);
                
                allowanceCount++;
            }
        }

        function removeAllowance() {
            if (allowanceCount > 0) {
                const container = document.getElementById('allowanceFields');
                const lastAllowance = container.lastElementChild;
                if (lastAllowance) {
                    container.removeChild(lastAllowance);
                    allowanceCount--;
                }
            }
        }
          function addDeduction() {
            if (deductionCount < maxFields) {
                const container = document.getElementById('deductionFields');
                
                const deductionDiv = document.createElement('div');
                deductionDiv.className = 'deductionField';
                
                const nameInput = document.createElement('input');
                nameInput.type = 'text';
                nameInput.placeholder = 'Deduction Name ' + (deductionCount + 1);
                nameInput.id = 'deduction-name-' + (deductionCount + 1);
                
                const amountInput = document.createElement('input');
                amountInput.type = 'number';
                amountInput.placeholder = 'Amount ' + (deductionCount + 1);
                amountInput.id = 'deduction-amount-' + (deductionCount + 1);
                amountInput.oninput = calculate;
                
                deductionDiv.appendChild(nameInput);
                deductionDiv.appendChild(amountInput);
                container.appendChild(deductionDiv);
                
                deductionCount++;
            }
        }

        function removeDeduction() {
            if (deductionCount > 0) {
                const container = document.getElementById('deductionFields');
                const lastDeduction = container.lastElementChild;
                if (lastDeduction) {
                    container.removeChild(lastDeduction);
                    deductionCount--;
                }
            }
        }

 function calculate() {
    var level = document.getElementById('level').value;
    var basic = parseInt(document.getElementById('basic').value) || 0;  // Parse basic as an integer or default to 0

    // Get the selected DA percentage from the dropdown
   var daPercentage = parseFloat(document.getElementById('daPercentage').value) || 0.54;
var da = basic * daPercentage;


    var cityType = document.getElementById("hracity").value;
    var hra = 0;

    // HRA Calculation based on selected pay level and city type
    const hraTable = {
        1: { X: 2200, Y: 1100, Z: 730 },
        2: { X: 2320, Y: 1160, Z: 770 },
        3: { X: 2400, Y: 1200, Z: 800 },
        4: { X: 2940, Y: 1470, Z: 980 },
        5: { X: 3340, Y: 1660, Z: 1110 },
        6: { X: 4040, Y: 2020, Z: 1340 },
        7: { X: 5520, Y: 2760, Z: 1840 },
        8: { X: 5620, Y: 2810, Z: 1870 },
        9: { X: 6300, Y: 3150, Z: 2100 },
        10: { X: 6300, Y: 3150, Z: 2100 },
        11: { X: 7560, Y: 3780, Z: 2520 },
        12: { X: 8960, Y: 4480, Z: 2980 },
        13: { X: 13820, Y: 6910, Z: 4600 },
        'A_13': { X: 14560, Y: 7280, Z: 4860 },
        14: { X: 16400, Y: 8200, Z: 5460 },
        15: { X: 18400, Y: 9200, Z: 6000 },
        16: { X: 19700, Y: 9850, Z: 6500 },
        17: { X: 21000, Y: 10500, Z: 7000 }
    };

    // Calculate HRA based on selected pay level and city type
    if (level && cityType) {
        hra = hraTable[level][cityType] || 0;
    }

    document.getElementById("hra1").textContent = hra ? "₹" + hra : "N/A";

    var allowanceSum = 0;
    document.querySelectorAll('#allowanceFields .allowanceField').forEach(field => {
        const amountInput = field.querySelector('input[type="number"]');
        allowanceSum += parseInt(amountInput.value) || 0;
    });

    var grossSalary = basic + da + hra + allowanceSum;

    var npsContribution = document.getElementById('include-nps').checked ? Math.round((basic + da) * 0.1) : 0;

    var deductionSum = 0;
    document.querySelectorAll('#deductionFields .deductionField').forEach(field => {
        const amountInput = field.querySelector('input[type="number"]');
        deductionSum += parseInt(amountInput.value) || 0;
    });

    // Display total sum of deductions
    document.getElementById('deductionSum').innerText = deductionSum;

    // Display total sum of allowances
    document.getElementById('allowanceSum').innerText = allowanceSum;

    var annualIncomeTax = document.getElementById('new-regime').checked ? calculateIncomeTaxNewRegime(grossSalary * 12) : 0;
    var incomeTax = Math.round(annualIncomeTax / 12);

    var netSalary = grossSalary - npsContribution - incomeTax - deductionSum;

    document.getElementById('selected-level').textContent = level;
    document.getElementById('selected-pay').textContent = basic;
    document.getElementById('da').textContent = Math.round(da);
    document.getElementById('hra1').textContent = Math.round(hra);
    document.getElementById('total').textContent = Math.round(grossSalary);
    document.getElementById('nps').textContent = npsContribution;
    document.getElementById('income-tax').textContent = incomeTax;
    document.getElementById('incometaxAn').textContent = Math.round(annualIncomeTax);
    document.getElementById('net-salary').textContent = Math.round(netSalary);

    document.getElementById('result').style.display = 'table';
}


function calculateIncomeTaxNewRegime(salary) {
    const standardDeduction = 75000;
    const cessRate = 0.04; // 4% cess
    const noTaxThreshold = 775000; // Total income threshold for no tax

    // Calculate taxable income after standard deduction
    const taxableIncome = Math.max(salary - standardDeduction, 0);

    // Initialize annualIncomeTax to 0
    let annualIncomeTax = 0;

    // Apply no tax if total income before deduction is less than or equal to ₹850,000
    if (salary <= noTaxThreshold) {
        return annualIncomeTax; // No tax if salary is less than or equal to ₹850,000
    }

    // Calculate income tax based on tax slabs
    if (taxableIncome <= 300000) {
        annualIncomeTax = 0; // No tax up to ₹3,00,000
    } else if (taxableIncome <= 700000) {
        annualIncomeTax = (taxableIncome - 300000) * 0.05; // 5% tax on income between ₹3,00,001 and ₹7,00,000
    } else if (taxableIncome <= 1000000) {
        annualIncomeTax = 20000 + (taxableIncome - 700000) * 0.10; // 10% tax on income between ₹7,00,001 and ₹10,00,000
    } else if (taxableIncome <= 1200000) {
        annualIncomeTax = 50000 + (taxableIncome - 1000000) * 0.15; // 15% tax on income between ₹10,00,001 and ₹12,00,000
    } else if (taxableIncome <= 1500000) {
        annualIncomeTax = 80000 + (taxableIncome - 1200000) * 0.20; // 20% tax on income between ₹12,00,001 and ₹15,00,000
    } else {
        annualIncomeTax = 140000 + (taxableIncome - 1500000) * 0.30; // 30% tax on income above ₹15,00,000
    }

    // Calculate cess on the tax amount (4%)
    const cess = annualIncomeTax * cessRate;

    // Calculate final tax amount
    annualIncomeTax += cess;

    return annualIncomeTax;
}


 // Automatically calculate when the input value changes
        document.getElementById("annualIncomeInput").addEventListener("input", calculateIncomeTax);

        function calculateIncomeTax() {
            const salary = parseFloat(document.getElementById("annualIncomeInput").value);
            if (isNaN(salary)) {
                document.getElementById("annualIncomeTaxOutput").textContent = "";
                document.getElementById("monthlyIncomeTaxOutput").textContent = "";
                return;
            }

            const standardDeduction = 75000;
            const cessRate = 0.04; // 4% cess
            const noTaxThreshold = 775000; // Total income threshold for no tax

            // Calculate taxable income after standard deduction
            const taxableIncome = Math.max(salary - standardDeduction, 0);

            // Initialize annualIncomeTax to 0
            let annualIncomeTax = 0;

            // Apply no tax if total income before deduction is less than or equal to ₹850,000
            if (salary <= noTaxThreshold) {
                document.getElementById("annualIncomeTaxOutput").textContent = "Annual Income Tax: ₹0";
                document.getElementById("monthlyIncomeTaxOutput").textContent = "Monthly Income Tax: ₹0";
                return;
            }

            // Calculate income tax based on tax slabs
            if (taxableIncome <= 300000) {
                annualIncomeTax = 0; // No tax up to ₹3,00,000
            } else if (taxableIncome <= 700000) {
                annualIncomeTax = (taxableIncome - 300000) * 0.05; // 5% tax on income between ₹3,00,001 and ₹7,00,000
            } else if (taxableIncome <= 1000000) {
                annualIncomeTax = 20000 + (taxableIncome - 700000) * 0.10; // 10% tax on income between ₹7,00,001 and ₹10,00,000
            } else if (taxableIncome <= 1200000) {
                annualIncomeTax = 50000 + (taxableIncome - 1000000) * 0.15; // 15% tax on income between ₹10,00,001 and ₹12,00,000
            } else if (taxableIncome <= 1500000) {
                annualIncomeTax = 80000 + (taxableIncome - 1200000) * 0.20; // 20% tax on income between ₹12,00,001 and ₹15,00,000
            } else {
                annualIncomeTax = 140000 + (taxableIncome - 1500000) * 0.30; // 30% tax on income above ₹15,00,000
            }

            // Calculate cess on the tax amount (4%)
            const cess = annualIncomeTax * cessRate;

            // Calculate final tax amount
            annualIncomeTax += cess;

            // Calculate monthly income tax
            const monthlyIncomeTax = Math.round(annualIncomeTax / 12);

            // Output the results (rounded to integers)
            document.getElementById("annualIncomeTaxOutput").textContent = `Annual Income Tax: ₹${Math.round(annualIncomeTax)}`;
            document.getElementById("monthlyIncomeTaxOutput").textContent = `Monthly Income Tax: ₹${monthlyIncomeTax}`;
        }


    </script>




</body>
<a target=”_blank” href="https://www.gfr.co.in/p/up-govt-salary-calculator.html">www.gfr.co.in</a>
   
  <p style="color:red;"><i> Disclaimer: The 7th CPC UP Govt Salary calculator is only for reference purpose not for official use </i></p>  
</body>


</html>