// Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_locale_css' ) ): function chld_thm_cfg_locale_css( $uri ){ if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) ) $uri = get_template_directory_uri() . '/rtl.css'; return $uri; } endif; add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' ); if ( !function_exists( 'child_theme_configurator_css' ) ): function child_theme_configurator_css() { wp_enqueue_style( 'chld_thm_cfg_child', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( 'astra-theme-css','astra-contact-form-7' ) ); } endif; add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 10 ); // END ENQUEUE PARENT ACTION function property_submission_form_shortcode() { ob_start(); ?> Property Submission Form

Submit Property

{"id":799,"date":"2024-03-08T17:50:03","date_gmt":"2024-03-08T17:50:03","guid":{"rendered":"https:\/\/eliteconsultingservices.com\/?page_id=799"},"modified":"2024-03-10T05:44:43","modified_gmt":"2024-03-10T05:44:43","slug":"799-2","status":"publish","type":"page","link":"https:\/\/eliteconsultingservices.com\/799-2\/","title":{"rendered":"Deal Analyzer"},"content":{"rendered":"\n\n\n\n \n \n Real Estate Deal Analyzer<\/title>\n <style>\n \/* Deal Analyzer Styles *\/\n #dealAnalyzer {\n max-width: 600px;\n margin: 20px auto;\n }\n\n #dealAnalyzer label {\n display: block;\n margin-bottom: 5px;\n }\n\n #dealAnalyzer input {\n width: 100%;\n padding: 8px;\n margin-bottom: 10px;\n box-sizing: border-box;\n }\n\n #dealAnalyzer button {\n background-color: #4CAF50;\n color: white;\n padding: 10px;\n border: none;\n cursor: pointer;\n width: 100%;\n }\n\n #dealAnalyzer #netProfit,\n #dealAnalyzer #roi,\n #dealAnalyzer #dealMessage {\n margin-top: 20px;\n font-weight: bold;\n }\n\n .bad-deal {\n color: red;\n }\n\n .decent-deal {\n color: #FFD700; \/* Yellow *\/\n }\n\n .good-deal {\n color: #008000; \/* Green *\/\n animation: flash 2s infinite;\n }\n\n @keyframes flash {\n 50% {\n opacity: 0;\n }\n }\n <\/style>\n<\/head>\n<body>\n <div id=\"dealAnalyzer\">\n <h2>Real Estate Deal Analyzer<\/h2>\n <label for=\"purchasePrice\">Purchase Price ($):<\/label>\n <input type=\"number\" id=\"purchasePrice\" required>\n\n <label for=\"rehabAmount\">Rehab Amount ($):<\/label>\n <input type=\"number\" id=\"rehabAmount\" required>\n\n <label for=\"afterRepairValue\">After Repair Value ($):<\/label>\n <input type=\"number\" id=\"afterRepairValue\" required>\n\n <button onclick=\"calculateDeal()\">Calculate Deal<\/button>\n\n <h3>Results<\/h3>\n <p id=\"netProfit\">Net Profit: $0<\/p>\n <p id=\"roi\">Return on Investment (ROI): 0%<\/p>\n <p id=\"dealMessage\"><\/p>\n <\/div>\n\n <script>\n function calculateDeal() {\n const purchasePrice = parseFloat(document.getElementById('purchasePrice').value);\n const rehabAmount = parseFloat(document.getElementById('rehabAmount').value);\n const afterRepairValue = parseFloat(document.getElementById('afterRepairValue').value);\n\n const netProfit = afterRepairValue - (purchasePrice + rehabAmount);\n const roi = (netProfit \/ (purchasePrice + rehabAmount)) * 100;\n\n document.getElementById('netProfit').textContent = `Net Profit: $${netProfit.toFixed(2)}`;\n document.getElementById('roi').textContent = `Return on Investment (ROI): ${roi.toFixed(2)}%`;\n\n displayDealMessage(roi);\n }\n\n function displayDealMessage(roi) {\n const dealMessageElement = document.getElementById('dealMessage');\n\n if (roi < 25) {\n dealMessageElement.textContent = 'Bad Deal';\n dealMessageElement.className = 'bad-deal';\n } else if (roi >= 25 && roi <= 40) {\n dealMessageElement.textContent = 'Decent Deal';\n dealMessageElement.className = 'decent-deal';\n } else {\n dealMessageElement.textContent = 'Good Deal';\n dealMessageElement.className = 'good-deal';\n }\n }\n <\/script>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>Real Estate Deal Analyzer Real Estate Deal Analyzer Purchase Price ($): Rehab Amount ($): After Repair Value ($): Calculate Deal Results Net Profit: $0 Return on Investment (ROI): 0%<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nf_dc_page":"","_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Jqtbpq2LybKw","author_link":"https:\/\/eliteconsultingservices.com\/author\/jqtbpq2lybkw\/"},"uagb_comment_info":0,"uagb_excerpt":"Real Estate Deal Analyzer Real Estate Deal Analyzer Purchase Price ($): Rehab Amount ($): After Repair Value ($): Calculate Deal Results Net Profit: $0 Return on Investment (ROI): 0%","_links":{"self":[{"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/pages\/799"}],"collection":[{"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/comments?post=799"}],"version-history":[{"count":6,"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/pages\/799\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/pages\/799\/revisions\/871"}],"wp:attachment":[{"href":"https:\/\/eliteconsultingservices.com\/wp-json\/wp\/v2\/media?parent=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}