{"id":395,"date":"2024-07-18T10:12:20","date_gmt":"2024-07-18T08:12:20","guid":{"rendered":"https:\/\/inmobiliariauno.es\/?page_id=395"},"modified":"2024-07-18T10:42:49","modified_gmt":"2024-07-18T08:42:49","slug":"comprar","status":"publish","type":"page","link":"https:\/\/inmobiliariauno.es\/en\/comprar\/","title":{"rendered":"Buy"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"395\" class=\"elementor elementor-395\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-29bda29 e-flex e-con-boxed e-con e-parent\" data-id=\"29bda29\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8d446d3 elementor-widget elementor-widget-heading\" data-id=\"8d446d3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">TENEMOS LA CASA DE TUS SUE\u00d1OS<\/h2>\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<div class=\"elementor-element elementor-element-2c5fc99 e-flex e-con-boxed e-con e-parent\" data-id=\"2c5fc99\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8419576 elementor-widget elementor-widget-html\" data-id=\"8419576\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<iframe src=\"https:\/\/www.webparainmobiliarias.com.es\/frame-clientes\/6501\/\" width=\"560\" height=\"780\" allowfullscreen=\"allowfullscreen\"><\/iframe>\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<div class=\"elementor-element elementor-element-b529f03 e-flex e-con-boxed e-con e-parent\" data-id=\"b529f03\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c492f46 elementor-widget elementor-widget-heading\" data-id=\"c492f46\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">HAZ TU SIMULACI\u00d3N<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-79ae5d8 elementor-widget elementor-widget-html\" data-id=\"79ae5d8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"es\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <title>Calculadora de Hipoteca<\/title>\r\n    <style>\r\n        .calculadora-hipoteca {\r\n            max-width: 400px;\r\n            margin: auto;\r\n            padding: 20px;\r\n            border: 1px solid #ffb600;\r\n            border-radius: 5px;\r\n            background-color: #FFb600;\r\n        }\r\n        .calculadora-hipoteca label {\r\n            font-family: 'Opensans'\r\n            display: block;\r\n            margin-bottom: 10px;\r\n        }\r\n        .calculadora-hipoteca input,\r\n        .calculadora-hipoteca select\r\n         {\r\n         \r\n            color: #000;\r\n            \r\n            width: 100%;\r\n            padding: 10px;\r\n            margin-bottom: 20px;\r\n        }\r\n        \r\n        .calculadora-hipoteca button{\r\n            background-color: #2b2a29;\r\n            color: white;\r\n            border: 1px solid #2b2a29;\r\n            margin-bottom: 20px;\r\n        }\r\n    <\/style>\r\n<\/head>\r\n<body>\r\n\r\n<div class=\"calculadora-hipoteca\">\r\n    \r\n    <label>\r\n        Importe a financiar (\u20ac):\r\n        <input type=\"number\" id=\"cantidadHipoteca\" required>\r\n    <\/label>\r\n    <label>\r\n        Tasa de Inter\u00e9s (%):\r\n        <input type=\"number\" step=\"0.01\" id=\"tasaInteres\" required>\r\n    <\/label>\r\n    <label>\r\n        Periodo de Amortizaci\u00f3n:\r\n        <select id=\"periodoTipo\">\r\n            <option value=\"anual\">Anual<\/option>\r\n            <option value=\"mensual\">Mensual<\/option>\r\n        <\/select>\r\n    <\/label>\r\n    <label>\r\n        N\u00famero de A\u00f1os\/Meses:\r\n        <input type=\"number\" id=\"periodo\" required>\r\n    <\/label>\r\n    <button onclick=\"calcularHipoteca()\">Calcular<\/button>\r\n    <p>*Los valores mostrados son meramente indicativos y no lo eximen de consultar la informaci\u00f3n detalladamente con tu especialista en financiaci\u00f3n hipotecaria y aceptar nuestros T\u00e9rminos y Condiciones en nuestro sitio web.<\/p>\r\n    <h3 id=\"resultado\"><\/h3>\r\n<\/div>\r\n\r\n<script>\r\n    function calcularHipoteca() {\r\n        const cantidadHipoteca = parseFloat(document.getElementById('cantidadHipoteca').value);\r\n        const tasaInteres = parseFloat(document.getElementById('tasaInteres').value) \/ 100;\r\n        const periodoTipo = document.getElementById('periodoTipo').value;\r\n        const periodo = parseInt(document.getElementById('periodo').value);\r\n        \r\n        let n, tasaInteresMensual, mensualidad;\r\n\r\n        if (periodoTipo === 'anual') {\r\n            n = periodo * 12;\r\n        } else {\r\n            n = periodo;\r\n        }\r\n\r\n        tasaInteresMensual = tasaInteres \/ 12;\r\n        \r\n        mensualidad = cantidadHipoteca * (tasaInteresMensual * Math.pow(1 + tasaInteresMensual, n)) \/ (Math.pow(1 + tasaInteresMensual, n) - 1);\r\n        \r\n        let resultado;\r\n        if (periodoTipo === 'anual') {\r\n            resultado = mensualidad * 12;\r\n            document.getElementById('resultado').innerText = `El pago anual ser\u00e1 de: ${resultado.toFixed(2)} Euros`;\r\n        } else {\r\n            document.getElementById('resultado').innerText = `El pago mensual ser\u00e1 de: ${mensualidad.toFixed(2)} Euros`;\r\n        }\r\n    }\r\n<\/script>\r\n\r\n<\/body>\r\n<\/html>\r\n\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>","protected":false},"excerpt":{"rendered":"<p>TENEMOS LA CASA DE TUS SUE\u00d1OS HAZ TU SIMULACI\u00d3N Calculadora de Hipoteca Importe a financiar (\u20ac): Tasa de Inter\u00e9s (%): Periodo de Amortizaci\u00f3n: AnualMensual N\u00famero de A\u00f1os\/Meses: Calcular *Los valores mostrados son meramente indicativos y no lo eximen de consultar la informaci\u00f3n detalladamente con tu especialista en financiaci\u00f3n hipotecaria y aceptar nuestros T\u00e9rminos y Condiciones [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-395","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/pages\/395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/comments?post=395"}],"version-history":[{"count":11,"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/pages\/395\/revisions"}],"predecessor-version":[{"id":653,"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/pages\/395\/revisions\/653"}],"wp:attachment":[{"href":"https:\/\/inmobiliariauno.es\/en\/wp-json\/wp\/v2\/media?parent=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}