{"id":577,"date":"2025-02-06T16:01:33","date_gmt":"2025-02-06T16:01:33","guid":{"rendered":"https:\/\/pruenti.com\/?page_id=577"},"modified":"2025-03-25T17:29:15","modified_gmt":"2025-03-25T17:29:15","slug":"kalkulator","status":"publish","type":"page","link":"https:\/\/pruenti.com\/index.php\/kalkulator\/","title":{"rendered":"Kalkulator"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"577\" class=\"elementor elementor-577\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-afe40c3 e-flex e-con-boxed e-con e-parent\" data-id=\"afe40c3\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-372aa47 elementor-widget elementor-widget-shortcode\" data-id=\"372aa47\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div id=\"loan-calculator\">\n\n    <div class=\"section-header\">PODSTAWOWE DANE KREDYTU<\/div>\n\n    <div class=\"loan-form\">\n        <label for=\"loan-amount\">KWOTA KREDYTU<\/label>\n        <div class=\"input-group\">\n            <input type=\"text\" id=\"loan-amount\" min=\"1\" max=\"1000000\" value=\"500000\">\n            <span>z\u0142<\/span>\n        <\/div>\n        <div class=\"input-slider-group\">\n            <span>KWOTA:<\/span>\n            <input type=\"range\" id=\"loan-slider\" min=\"1\" max=\"1000000\" value=\"500000\">\n        <\/div>\n        \n        \n        <label for=\"loan-term\">ILO\u015a\u0106 RAT<\/label>\n       \n        <div class=\"input-group\">\n            <input type=\"text\" id=\"loan-term\" min=\"1\" max=\"360\" value=\"180\">\n            <span>mc-y<\/span>\n        <\/div>\n        <div class=\"input-slider-group\">\n            <span>RATY:<\/span>\n            <input type=\"range\" id=\"term-slider\" min=\"1\" max=\"360\" value=\"180\">\n        <\/div>\n    \n        <label for=\"loan-rate\">OPROCENTOWANIE<\/label>\n        <div class=\"input-group\">\n            <input type=\"text\" id=\"loan-rate\" min=\"0.01\" max=\"20\" step=\"0.01\" value=\"6\">\n            <span>%<\/span>\n        <\/div>\n        <div class=\"input-slider-group\">\n            <span style=\"font-size:22px\">%<\/span>\n            <input type=\"range\" id=\"rate-slider\" min=\"0.01\" max=\"20\" step=\"0.01\" value=\"6\">\n        <\/div>\n    <\/div>\n\n    <div class=\"summary\">\n        <label>PODSUMOWANIE<\/label>\n        <div class=\"input-group amount\">\n            <input type=\"text\" value=\"6\" id=\"monthly-payment\" readonly=\"true\">\n            <span>z\u0142<\/span>\n        <\/div>\n\n        <small>Rata miesi\u0119czna<\/small>\n    <\/div>\n\n    <p class=\"disclaimer\">\n        Zastrze\u017cenie prawne<br\/>\nKalkulator kredytowy udost\u0119pniony na niniejszej stronie ma wy\u0142\u0105cznie charakter informacyjny i&nbsp;edukacyjny. Wyliczenia dokonywane za jego\npomoc\u0105 nie stanowi\u0105 oferty w&nbsp;rozumieniu art. 66 \u00a71 Kodeksu cywilnego ani propozycji zawarcia umowy kredytowej. Prezentowane wyniki maj\u0105\ncharakter orientacyjny i&nbsp;mog\u0105 r\u00f3\u017cni\u0107 si\u0119 od rzeczywistych warunk\u00f3w finansowania oferowanych przez instytucje kredytowe. Sp\u00f3\u0142ka Pruenti\nnie gwarantuje dost\u0119pno\u015bci kredyt\u00f3w na warunkach wynikaj\u0105cych z&nbsp;kalkulacji i&nbsp;nie ponosi odpowiedzialno\u015bci za decyzje podj\u0119te na ich\npodstawie. Ostateczne warunki kredytu, w&nbsp;tym harmonogram sp\u0142at oraz wysoko\u015b\u0107 rat, okre\u015blane s\u0105 w&nbsp;umowie kredytowej zawieranej\nz&nbsp;instytucj\u0105 finansow\u0105. Przed podj\u0119ciem decyzji o&nbsp;zaci\u0105gni\u0119ciu zobowi\u0105zania zaleca si\u0119  zapoznanie si\u0119 z&nbsp;pe\u0142nymi warunkami\nkredytu. \n    <\/p>\n<\/div>\n\n<script>\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n    const formatter = new Intl.NumberFormat('pl-PL');\n\n    const fields = [\n        { textId: 'loan-amount', sliderId: 'loan-slider', isCurrency: true, min: 1, max: 1000000 },\n        { textId: 'loan-term', sliderId: 'term-slider', isInteger: true, min: 1, max: 360 },\n        { textId: 'loan-rate', sliderId: 'rate-slider', isRate: true, min: 0.01, max: 20 }\n    ];\n\n    fields.forEach(({ textId, sliderId, isCurrency, isRate, isInteger, min, max }) => {\n        const textInput = document.getElementById(textId);\n        const sliderInput = document.getElementById(sliderId);\n\n        const formatValue = value => isCurrency ? formatter.format(value) : value;\n\n        textInput.addEventListener(\"input\", () => {\n            textInput.value = textInput.value.replace(\/[^0-9.,]\/g, '');\n            let numValue = parseFloat(textInput.value.replace(',', '.'));\n            if (isNaN(numValue) || (isRate && textInput.value === '')) return;\n\n            numValue = Math.max(min, Math.min(numValue, max));\n            if (isInteger) numValue = Math.round(numValue);\n            textInput.value = textInput.value.replace(',', '.');\n            sliderInput.value = numValue;\n            calculateLoan();\n            updateSliderBackground(sliderInput);\n        });\n\n        sliderInput.addEventListener(\"input\", () => {\n            textInput.value = formatValue(sliderInput.value);\n            calculateLoan();\n            updateSliderBackground(sliderInput);\n        });\n\n        textInput.addEventListener(\"blur\", () => {\n            let numValue = parseFloat(textInput.value.replace(\/\\s\/g, '').replace(',', '.'));\n            if (!isNaN(numValue)) {\n                numValue = Math.max(min, Math.min(numValue, max));\n                if (isInteger) numValue = Math.round(numValue);\n                textInput.value = isCurrency ? formatter.format(numValue) : numValue.toFixed(isInteger ? 0 : 2);\n            }\n        });\n\n        textInput.value = formatValue(sliderInput.value);\n        updateSliderBackground(sliderInput);\n    });\n\n    function updateSliderBackground(sliderEl) {\n        const value = sliderEl.value;\n        const max = sliderEl.max;\n        const progress = (value \/ max) * 100;\n        sliderEl.style.background = `linear-gradient(to right, #222452 ${progress}%, #ccc ${progress}%)`;\n    }\n\n    function calculateLoan() {\n        const amount = parseFloat(document.getElementById('loan-amount').value.replace(\/\\s\/g, ''));\n        const term = parseInt(document.getElementById('loan-term').value.replace(\/\\s\/g, ''), 10);\n        const rate = parseFloat(document.getElementById('loan-rate').value.replace(\/\\s\/g, '')) \/ 100;\n        const monthlyRate = rate \/ 12;\n        const payment = (amount * monthlyRate) \/ (1 - Math.pow(1 + monthlyRate, -term));\n        document.getElementById('monthly-payment').value = payment.toFixed(0);\n    }\n\n    calculateLoan();\n});\n<\/script><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\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":"","meta":{"footnotes":""},"class_list":["post-577","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/pages\/577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/comments?post=577"}],"version-history":[{"count":8,"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/pages\/577\/revisions"}],"predecessor-version":[{"id":756,"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/pages\/577\/revisions\/756"}],"wp:attachment":[{"href":"https:\/\/pruenti.com\/index.php\/wp-json\/wp\/v2\/media?parent=577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}