{"id":1637,"date":"2026-06-24T00:15:24","date_gmt":"2026-06-23T22:15:24","guid":{"rendered":"https:\/\/boxalmetro.com\/web\/?page_id=1637"},"modified":"2026-06-26T17:17:31","modified_gmt":"2026-06-26T15:17:31","slug":"simulatore-prezzo-selfstorage-centro-storico-via-pelleria-18-lucca","status":"publish","type":"page","link":"https:\/\/boxalmetro.com\/web\/simulatore-prezzo-selfstorage-centro-storico-via-pelleria-18-lucca\/","title":{"rendered":"Simulatore Prezzo SelfStorage Centro Storico Via Pelleria 18 Lucca"},"content":{"rendered":"<div>\r\nTorna alle <a href=\"https:\/\/boxalmetro.com\/web\/offerte-promo\/\">Offerte e Promo<\/a> <br\/><br\/> o vai al\r\n<a href=\"https:\/\/boxalmetro.com\/web\/simulatore-prezzo-selfstorage-via-di-tiglio-43-lucca\/?sqm=2&months=6\"> Simulatore Prezzo SelfStorage Via di Tiglio 43 Lucca <\/a> <br\/><br\/> o vai al\r\n\r\n<a href=\"https:\/\/boxalmetro.com\/web\/simulatore-prezzo-selfstorage-centro-storico-via-pelleria-18-lucca\/?sqm=2.5&months=6\"> Simulatore Prezzo SelfStorage Centro Storico Via Pelleria 18 Lucca <\/a> <br\/><br\/> o vai al\r\n\r\n<a href=\"https:\/\/boxalmetro.com\/web\/simulatore-prezzo-selfbikeracks-centro-storico-via-pelleria-18-lucca\/?racks=1&months=6\"> Simulatore Prezzo SelfBikeRacks Centro Storico Via Pelleria 18 Lucca <\/a> <br\/><br\/> o vai al\r\n\r\n\r\n<a href=\"https:\/\/boxalmetro.com\/web\/simulatore-prezzo-hybridstorage-individuali-non-self-via-di-tiglio-39-lucca\/?mq=4&mesi=6\"> Simulatore Prezzo HybridStorage Via di Tiglio 39 Lucca <\/a> <br\/><br\/> o vai al\r\n\r\n<a href=\"https:\/\/boxalmetro.com\/web\/simulatore-prezzo-warestorage-condivisi-non-self-bagni-di-lucca\/?mq=8&mesi=6\">Simulatore Prezzo WarehouseStorage Via Giardini Sud 14 Fabbriche Casabasciana Bagni di Lucca <\/a> <br\/><br\/> o vai alla\r\n\r\n<a href=\"https:\/\/boxalmetro.com\/web\/offerte-promo\/#documenti-attivazione\">Lista dei documenti necessari all'attivazione del servizio - Paperwork<\/a>\r\n<\/div>\r\n\r\n<style>\r\n  \/* Container Style *\/\r\n  #calc_container_v7 {\r\n    border: 1px solid #ddd;\r\n    padding: 20px;\r\n    background: #f9f9f9;\r\n    border-radius: 8px;\r\n    font-family: sans-serif;\r\n    max-width: 500px;\r\n    margin: 20px auto;\r\n  }\r\n  .calc-row { margin-bottom: 15px; }\r\n  .calc-row label { display: block; font-weight: bold; margin-bottom: 5px; }\r\n  .calc-row select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }\r\n  \r\n  \/* Results Style *\/\r\n  .calc-results { margin-top: 20px; padding-top: 20px; border-top: 2px solid #eee; }\r\n  .res-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }\r\n  .res-row.total { font-weight: bold; color: #2c3e50; font-size: 1.1em; border-bottom: none; margin-top: 10px; }\r\n  .green-text { color: #27ae60; font-weight: bold; }\r\n\r\n  \/* Button Style *\/\r\n  .btn-area { margin-top: 20px; text-align: center; }\r\n  .copy-btn { background-color: #0073aa; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }\r\n  .copy-msg { display: block; margin-top: 8px; font-size: 12px; color: #27ae60; opacity: 0; transition: opacity 0.3s; }\r\n  .copy-msg.visible { opacity: 1; }\r\n  \r\n  \/* Debug Status *\/\r\n  #debug_status { font-size: 10px; color: #999; text-align: right; margin-top: 10px; }\r\n<\/style>\r\n\r\n<div id=\"calc_container_v7\">\r\n  <h3>Simulatore Prezzo SelfStorage Centro Storico Via Pelleria 18 Lucca<\/h3>\r\n  \r\n  <div class=\"calc-row\">\r\n    <label>Dimensione (Metri Quadri) - Size (Square Meters) :<\/label>\r\n    <select id=\"input_sqm\" class=\"storage-input\">\r\n      <option value=\"2.5\" selected>2.5 mq<\/option>\r\n    <\/select>\r\n  <\/div>\r\n\r\n  <div class=\"calc-row\">\r\n    <label>Durata (Mesi) - Duration :<\/label>\r\n    <select id=\"input_months\" class=\"storage-input\">\r\n      <option value=\"1\" selected>1 Mese (Sconto 0%)<\/option>\r\n      <option value=\"2\">2 Mesi (Sconto 3%)<\/option>\r\n      <option value=\"3\">3 Mesi (Sconto 5%)<\/option>\r\n      <option value=\"4\">4 Mesi (Sconto 8%)<\/option>\r\n      <option value=\"6\">6 Mesi (Sconto 10%)<\/option>\r\n      <option value=\"12\">12 Mesi (Sconto 20%)<\/option>\r\n    <\/select>\r\n  <\/div>\r\n\r\n  <div class=\"calc-results\">\r\n    <div class=\"res-row\"><span>Canone Mensile Scontato:<\/span> <span id=\"val_monthly\">Attendere...<\/span><\/div>\r\n    <div class=\"res-row\"><span>Affitto Totale:<\/span> <span id=\"val_total_rent\">Attendere...<\/span><\/div>\r\n    <div class=\"res-row\"><span>Cauzione (2 Mensilit\u00e0):<\/span> <span id=\"val_deposit\">Attendere...<\/span><\/div>\r\n    <div class=\"res-row total\"><span>Totale Da Pagare Ora:<\/span> <span class=\"green-text\" id=\"val_due\">Attendere...<\/span><\/div>\r\n  <\/div>\r\n\r\n  <div class=\"btn-area\">\r\n    <button id=\"btn_copy\" class=\"copy-btn\">\ud83d\udccb Copia Link Preventivo<\/button>\r\n    <span id=\"msg_copy\" class=\"copy-msg\">Link Copiato!<\/span>\r\n  <\/div>\r\n  \r\n  <div id=\"debug_status\">Status: Caricamento...<\/div>\r\n<\/div>\r\n\r\n<script>\r\n(function() {\r\n  var BASE_RATE = 96.00;\r\n  var isInitialized = false;\r\n\r\n  function doCalculation() {\r\n    var container = document.getElementById('calc_container_v7');\r\n    if (!container) return;\r\n\r\n    var sqmEl = container.querySelector('#input_sqm');\r\n    var monthsEl = container.querySelector('#input_months');\r\n    if (!sqmEl || !monthsEl) return;\r\n\r\n    \/\/ Use parseFloat to allow decimals (like 2.5), fallback to 2.5 if stripped\r\n    var sqm = parseFloat(sqmEl.value) || 2.5; \r\n    var months = parseInt(monthsEl.value) || 1;\r\n\r\n    \/\/ Safety check so it NEVER calculates zero\r\n    if (sqm <= 0) sqm = 2.5;\r\n    if (months <= 0) months = 1;\r\n\r\n    \/\/ Duration Discount Logic\r\n    var durDisc = 0;\r\n    if (months === 2) durDisc = 0.03;\r\n    if (months === 3) durDisc = 0.05;\r\n    if (months === 4) durDisc = 0.08;\r\n    if (months === 6) durDisc = 0.10;\r\n    if (months === 12) durDisc = 0.20;\r\n\r\n    \/\/ Area Discount Logic (Set to 0 for 2.5sqm, adjust if needed)\r\n    var areaDisc = 0; \r\n\r\n    \/\/ Math\r\n    var totalDisc = durDisc + areaDisc;\r\n    var totalBase = BASE_RATE * sqm * months;\r\n    var finalPrice = totalBase * (1 - totalDisc);\r\n\r\n    var monthlyRate = finalPrice \/ months;\r\n    var deposit = monthlyRate * 2;\r\n    var totalDue = finalPrice + deposit;\r\n\r\n    \/\/ Formatting\r\n    var fmt = new Intl.NumberFormat('it-IT', { style: 'currency', currency: 'EUR' });\r\n\r\n    container.querySelector('#val_monthly').textContent = fmt.format(monthlyRate);\r\n    container.querySelector('#val_total_rent').textContent = fmt.format(finalPrice);\r\n    container.querySelector('#val_deposit').textContent = fmt.format(deposit);\r\n    container.querySelector('#val_due').textContent = fmt.format(totalDue);\r\n\r\n    \/\/ URL Update\r\n    if (window.history.replaceState) {\r\n        var newUrl = window.location.protocol + \"\/\/\" + window.location.host + window.location.pathname + \"?sqm=\" + sqm + \"&months=\" + months;\r\n        window.history.replaceState({ path: newUrl }, '', newUrl);\r\n    }\r\n  }\r\n\r\n  function initCalculator() {\r\n    if (isInitialized) return true;\r\n\r\n    var container = document.getElementById('calc_container_v7');\r\n    if (!container) return false;\r\n\r\n    var sqmEl = container.querySelector('#input_sqm');\r\n    var monthsEl = container.querySelector('#input_months');\r\n    var btnCopy = container.querySelector('#btn_copy');\r\n    var statusEl = container.querySelector('#debug_status');\r\n\r\n    if (sqmEl && monthsEl) {\r\n      \/\/ Bind events\r\n      sqmEl.addEventListener('change', doCalculation);\r\n      monthsEl.addEventListener('change', doCalculation);\r\n      \r\n      if (btnCopy) {\r\n        btnCopy.addEventListener('click', function() {\r\n           navigator.clipboard.writeText(window.location.href).then(function() {\r\n             var msg = container.querySelector('#msg_copy');\r\n             msg.classList.add('visible');\r\n             setTimeout(function() { msg.classList.remove('visible'); }, 2000);\r\n           });\r\n        });\r\n      }\r\n\r\n      \/\/ Check URL parameters\r\n      var params = new URLSearchParams(window.location.search);\r\n      if (params.get('sqm')) sqmEl.value = params.get('sqm');\r\n      if (params.get('months')) monthsEl.value = params.get('months');\r\n\r\n      isInitialized = true;\r\n      doCalculation();\r\n      if (statusEl) statusEl.textContent = \"Status: Attivo \u2705\";\r\n      return true;\r\n    }\r\n    return false;\r\n  }\r\n\r\n  \/\/ Aggressive Loader: checks every half second until it works\r\n  var bootInterval = setInterval(function() {\r\n    if (initCalculator()) {\r\n      clearInterval(bootInterval);\r\n    }\r\n  }, 500);\r\n\r\n  \/\/ Fallbacks\r\n  document.addEventListener('DOMContentLoaded', initCalculator);\r\n  window.addEventListener('load', initCalculator);\r\n\r\n})();\r\n<\/script>\r\n","protected":false},"excerpt":{"rendered":"Torna alle Offerte e Promo o vai al Simulatore Prezzo SelfStorage Via di Tiglio 43 Lucca o vai al Simulatore Prezzo SelfStorage Centro Storico Via Pelleria 18 Lucca o vai al Simulatore Prezzo SelfBikeRacks Centro Storico Via Pelleria 18 Lucca o vai<p class=\"link-more\"><a class=\"myButt three\" href=\"https:\/\/boxalmetro.com\/web\/simulatore-prezzo-selfstorage-centro-storico-via-pelleria-18-lucca\/\">Read More<\/a><\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_joinchat":[],"footnotes":""},"class_list":["post-1637","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/pages\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/comments?post=1637"}],"version-history":[{"count":13,"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/pages\/1637\/revisions"}],"predecessor-version":[{"id":1692,"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/pages\/1637\/revisions\/1692"}],"wp:attachment":[{"href":"https:\/\/boxalmetro.com\/web\/wp-json\/wp\/v2\/media?parent=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}