{"id":29797,"date":"2026-08-31T13:16:29","date_gmt":"2026-08-31T13:16:29","guid":{"rendered":"https:\/\/elnouwrsaircool.com\/ac-calculator-en\/"},"modified":"2026-09-10T14:20:14","modified_gmt":"2026-09-10T14:20:14","slug":"ac-calculator-en","status":"publish","type":"page","link":"https:\/\/elnouwrsaircool.com\/en\/ac-calculator-en\/","title":{"rendered":"Calculate Your AC"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"29797\" class=\"elementor elementor-29797 elementor-29795\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"wd-negative-gap elementor-section elementor-top-section elementor-element elementor-element-43798e4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"43798e4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1d69654\" data-id=\"1d69654\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4723b95 elementor-widget elementor-widget-html\" data-id=\"4723b95\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div class=\"ac-calc-wrap\" dir=\"ltr\">\n  <style>\n    .ac-calc-wrap{max-width:960px;margin:0 auto;font-family:inherit;direction:ltr;text-align:center;padding:10px}\n    .ac-calc-wrap h2{font-size:30px;margin-bottom:10px;font-weight:800;color:#173a4d}\n    .ac-calc-wrap p.ac-sub{color:#697985;margin-bottom:32px;font-size:16px}\n\n    .ac-calc-box{background:#fff;border-radius:16px;padding:36px 32px;box-shadow:0 8px 30px rgba(20,60,80,.08);border:1px solid #eef2f4}\n\n    .ac-dims-group{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-bottom:6px}\n    .ac-divider{display:flex;align-items:center;gap:12px;color:#9aa7ac;font-weight:600;margin:18px auto;max-width:400px}\n    .ac-divider::before,.ac-divider::after{content:'';flex:1;height:1px;background:#e2e8ea}\n    .ac-btn-wrap{display:flex;justify-content:center;margin-top:6px}\n\n    .ac-field{flex:1;max-width:210px;text-align:center}\n    .ac-field label{display:block;margin-bottom:8px;font-weight:700;font-size:14px;color:#173a4d}\n    .ac-field input[type=number]{width:100%;padding:12px 14px;border:1.5px solid #dbe4e8;border-radius:10px;font-size:16px;text-align:center;box-sizing:border-box;transition:border-color .15s}\n    .ac-field input[type=number]:focus{outline:none;border-color:#1e9bb5}\n\n    .ac-radio-group{margin-bottom:22px}\n    .ac-radio-group>label.ac-group-label{display:block;margin-bottom:10px;font-weight:700;font-size:14px;color:#173a4d}\n    .ac-radios{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}\n    .ac-radios label{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:14px;border:1.5px solid #dbe4e8;padding:9px 18px;border-radius:999px;transition:all .15s;background:#fbfcfd}\n    .ac-radios input{accent-color:#1e9bb5}\n    .ac-radios label:has(input:checked){border-color:#1e9bb5;background:#e9f7fa;color:#0d6f83;font-weight:700}\n\n    .ac-calc-btn{background:linear-gradient(135deg,#1e9bb5,#157e93);color:#fff;border:none;padding:15px 46px;border-radius:10px;font-size:17px;cursor:pointer;font-weight:700;box-shadow:0 6px 16px rgba(30,155,181,.3);transition:transform .15s}\n    .ac-calc-btn:hover{transform:translateY(-2px)}\n\n    .ac-error{color:#c0392b;margin-top:14px;font-size:14px;display:none}\n\n    .ac-result{margin-top:30px;background:#f2faf7;border:1px solid #cdeee0;border-radius:14px;padding:26px;display:none}\n    .ac-result.show{display:block}\n    .ac-result h3{margin:0 0 12px;color:#1c7c53;font-size:20px;font-weight:800}\n    .ac-result .ac-result-line{font-size:19px;margin-bottom:10px;font-weight:700;color:#173a4d}\n    .ac-result .ac-note{color:#7c8a90;font-size:13px;margin:0}\n\n    .ac-products{margin-top:34px}\n    .ac-products h4{font-size:19px;margin-bottom:20px;font-weight:800;color:#173a4d}\n    .ac-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;text-align:center}\n    .ac-card{background:#fff;border:1px solid #eef2f4;border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 14px rgba(20,60,80,.05);transition:transform .15s}\n    .ac-card:hover{transform:translateY(-3px)}\n    .ac-card img{width:100%;height:140px;object-fit:contain;margin-bottom:12px}\n    .ac-card .ac-card-title{font-size:14px;font-weight:700;margin-bottom:8px;min-height:38px;color:#173a4d}\n    .ac-card .ac-card-price{color:#1e9bb5;font-weight:800;margin-bottom:12px}\n    .ac-card a.ac-card-btn{margin-top:auto;background:#1e9bb5;color:#fff;padding:9px 16px;border-radius:8px;text-decoration:none;font-size:13px;font-weight:700;width:100%;box-sizing:border-box}\n    .ac-card a.ac-card-btn:hover{background:#157e93}\n    .ac-loading{color:#7c8a90;font-size:14px}\n    .ac-view-all{display:inline-block;margin-top:20px;color:#1e9bb5;font-weight:700;text-decoration:none;border-bottom:2px solid #1e9bb5;padding-bottom:2px}\n\n    .ac-calc-wrap, .ac-calc-wrap *{text-align:center !important}\n    .ac-calc-wrap .ac-radios{justify-content:center !important}\n    .ac-calc-wrap .ac-row{justify-content:center !important}\n    .ac-calc-wrap .ac-products-grid{justify-content:center !important}\n\n    @media (max-width:640px){\n      .ac-calc-box{padding:26px 18px}\n      .ac-calc-wrap h2{font-size:24px}\n      .ac-calc-wrap, .ac-calc-wrap *{text-align:center !important}\n      .ac-calc-wrap .ac-dims-group{flex-direction:column;align-items:center !important}\n      .ac-calc-wrap .ac-field{max-width:100% !important;width:100%}\n    }\n  <\/style>\n\n  <h2>Find the Right AC For You<\/h2>\n  <p class=\"ac-sub\">Enter your room size and we will suggest the right capacity and models for you<\/p>\n\n  <div class=\"ac-calc-box\">\n    <div class=\"ac-dims-group\">\n      <div class=\"ac-field\">\n        <label>Length (m)<\/label>\n        <input type=\"number\" id=\"ac-length\" min=\"0\" step=\"0.1\" placeholder=\"5\">\n      <\/div>\n      <div class=\"ac-field\">\n        <label>Width (m)<\/label>\n        <input type=\"number\" id=\"ac-width\" min=\"0\" step=\"0.1\" placeholder=\"4\">\n      <\/div>\n    <\/div>\n\n    <div class=\"ac-divider\"><span>OR<\/span><\/div>\n\n    <div class=\"ac-dims-group\">\n      <div class=\"ac-field\">\n        <label>Area (m\u00b2)<\/label>\n        <input type=\"number\" id=\"ac-area\" min=\"0\" step=\"0.1\" placeholder=\"20\">\n      <\/div>\n    <\/div>\n\n    <div class=\"ac-radio-group\">\n      <label class=\"ac-group-label\">Room Orientation<\/label>\n      <div class=\"ac-radios\">\n        <label><input type=\"radio\" name=\"ac-orient\" value=\"bahri\" checked> North-facing (Shaded)<\/label>\n        <label><input type=\"radio\" name=\"ac-orient\" value=\"qibli\"> South-facing (Sun-exposed)<\/label>\n      <\/div>\n    <\/div>\n\n    <div class=\"ac-radio-group\">\n      <label class=\"ac-group-label\">Is the room on the top floor?<\/label>\n      <div class=\"ac-radios\">\n        <label><input type=\"radio\" name=\"ac-floor\" value=\"repeat\" checked> No (Typical floor)<\/label>\n        <label><input type=\"radio\" name=\"ac-floor\" value=\"last\"> Yes (Top floor)<\/label>\n      <\/div>\n    <\/div>\n\n    <div class=\"ac-btn-wrap\"><button class=\"ac-calc-btn\" id=\"ac-calc-btn\">Calculate Now<\/button><\/div>\n    <div class=\"ac-error\" id=\"ac-error\">Please enter the area, or the length and width<\/div>\n\n    <div class=\"ac-result\" id=\"ac-result\">\n      <h3>\u2705 Recommended AC for your space<\/h3>\n      <div class=\"ac-result-line\" id=\"ac-result-line\"><\/div>\n      <p class=\"ac-note\">This is an estimation tool \u2014 for special cases you can request an engineer review<\/p>\n    <\/div>\n\n    <div class=\"ac-products\" id=\"ac-products\" style=\"display:none\">\n      <h4>Suitable Units<\/h4>\n      <div class=\"ac-loading\" id=\"ac-loading\" style=\"display:none\">Loading units...<\/div>\n      <div class=\"ac-products-grid\" id=\"ac-products-grid\"><\/div>\n      <a href=\"#\" id=\"ac-view-all\" class=\"ac-view-all\" style=\"display:none\">View all units in this category \u2192<\/a>\n    <\/div>\n  <\/div>\n<\/div>\n\n<script>\n(function(){\n  var TABLES = {\n    last_qibli:   [{hp:'1.5',max:10,slug:'hp-1-5'},{hp:'2.25',max:16,slug:'hp-2-25'},{hp:'3',max:20,slug:'hp-3'},{hp:'4',max:26,slug:'hp-4'},{hp:'5',max:32,slug:'hp-5'},{hp:'6',max:46,slug:'hp-6'},{hp:'7.5',max:58,slug:'hp-7-5'}],\n    last_bahri:   [{hp:'1.5',max:12,slug:'hp-1-5'},{hp:'2.25',max:18,slug:'hp-2-25'},{hp:'3',max:24,slug:'hp-3'},{hp:'4',max:29,slug:'hp-4'},{hp:'5',max:36,slug:'hp-5'},{hp:'6',max:48,slug:'hp-6'},{hp:'7.5',max:60,slug:'hp-7-5'}],\n    repeat_qibli: [{hp:'1.5',max:12,slug:'hp-1-5'},{hp:'2.25',max:18,slug:'hp-2-25'},{hp:'3',max:24,slug:'hp-3'},{hp:'4',max:30,slug:'hp-4'},{hp:'5',max:36,slug:'hp-5'},{hp:'6',max:48,slug:'hp-6'},{hp:'7.5',max:60,slug:'hp-7-5'}],\n    repeat_bahri: [{hp:'1.5',max:14,slug:'hp-1-5'},{hp:'2.25',max:20,slug:'hp-2-25'},{hp:'3',max:26,slug:'hp-3'},{hp:'4',max:32,slug:'hp-4'},{hp:'5',max:38,slug:'hp-5'},{hp:'6',max:50,slug:'hp-6'},{hp:'7.5',max:64,slug:'hp-7-5'}]\n  };\n\n  function renderProducts(items){\n    var grid = document.getElementById('ac-products-grid');\n    grid.innerHTML = '';\n    if(!items || !items.length){\n      grid.innerHTML = '<p>No units currently available in this category<\/p>';\n      return;\n    }\n    items.forEach(function(p){\n      var card = document.createElement('div');\n      card.className = 'ac-card';\n      var img = p.image || '';\n      card.innerHTML =\n        '<img decoding=\"async\" src=\"'+img+'\" alt=\"\" loading=\"lazy\">' +\n        '<div class=\"ac-card-title\">'+p.title+'<\/div>' +\n        '<div class=\"ac-card-price\">'+p.price_html+'<\/div>' +\n        '<a class=\"ac-card-btn\" href=\"'+p.permalink+'\" target=\"_blank\" rel=\"noopener\">View & Buy<\/a>';\n      grid.appendChild(card);\n    });\n  }\n\n  function loadProducts(slug){\n    var wrap = document.getElementById('ac-products');\n    var loading = document.getElementById('ac-loading');\n    var viewAll = document.getElementById('ac-view-all');\n    wrap.style.display = 'block';\n    loading.style.display = 'block';\n    document.getElementById('ac-products-grid').innerHTML = '';\n    viewAll.style.display = 'none';\n\n    fetch('\/wp-json\/ac-calc\/v1\/products?hp=' + encodeURIComponent(slug))\n      .then(function(r){ return r.json(); })\n      .then(function(data){\n        loading.style.display = 'none';\n        renderProducts(data.items || []);\n        viewAll.href = '\/ac-hp\/' + slug + '\/';\n        viewAll.style.display = 'inline-block';\n      })\n      .catch(function(){\n        loading.style.display = 'none';\n        document.getElementById('ac-products-grid').innerHTML = '<p>Failed to load units, please try again<\/p>';\n      });\n  }\n\n  document.addEventListener('click', function(e){\n    if(e.target && e.target.id === 'ac-calc-btn'){\n      e.preventDefault();\n      var length = parseFloat(document.getElementById('ac-length').value);\n      var width = parseFloat(document.getElementById('ac-width').value);\n      var areaField = parseFloat(document.getElementById('ac-area').value);\n      var area;\n      if(!isNaN(length) && !isNaN(width) && length>0 && width>0){\n        area = length*width;\n      } else if(!isNaN(areaField) && areaField>0){\n        area = areaField;\n      }\n      var errEl = document.getElementById('ac-error');\n      var resEl = document.getElementById('ac-result');\n      var prodEl = document.getElementById('ac-products');\n      if(!area || area<=0){\n        errEl.style.display='block';\n        resEl.classList.remove('show');\n        prodEl.style.display='none';\n        return;\n      }\n      errEl.style.display='none';\n\n      var orient = document.querySelector('input[name=\"ac-orient\"]:checked').value;\n      var floor = document.querySelector('input[name=\"ac-floor\"]:checked').value;\n      var table = TABLES[floor + '_' + orient];\n\n      var chosen = null;\n      for(var i=0;i<table.length;i++){\n        if(area <= table[i].max){ chosen = table[i]; break; }\n      }\n      var multiUnit = false;\n      if(!chosen){ chosen = table[table.length-1]; multiUnit = true; }\n\n      var line = 'Area ' + area.toFixed(1) + ' m\u00b2 \u2192 ';\n      line += multiUnit ? 'more than one unit at ' : 'one unit at ';\n      line += chosen.hp + ' HP';\n      document.getElementById('ac-result-line').textContent = line;\n      resEl.classList.add('show');\n\n      loadProducts(chosen.slug);\n\n      prodEl.scrollIntoView({behavior:'smooth', block:'nearest'});\n    }\n  });\n})();\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-29797","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/pages\/29797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/comments?post=29797"}],"version-history":[{"count":2,"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/pages\/29797\/revisions"}],"predecessor-version":[{"id":30365,"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/pages\/29797\/revisions\/30365"}],"wp:attachment":[{"href":"https:\/\/elnouwrsaircool.com\/en\/wp-json\/wp\/v2\/media?parent=29797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}