{"id":16,"date":"2024-10-14T08:54:51","date_gmt":"2024-10-14T08:54:51","guid":{"rendered":"https:\/\/yossilevi.com\/?page_id=16"},"modified":"2024-10-14T09:10:06","modified_gmt":"2024-10-14T09:10:06","slug":"elementor-16","status":"publish","type":"page","link":"https:\/\/yossilevi.com\/?page_id=16","title":{"rendered":"\u05de\u05d7\u05e9\u05d1\u05d5\u05df \u05d7\u05ea\u05d5\u05e0\u05d5\u05ea \u05d9\u05dc\u05d3\u05d9\u05dd \u05d1\u05e0\u05d9\u05e7\u05dc"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"16\" class=\"elementor elementor-16\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-32c6fc9 e-flex e-con-boxed e-con e-parent\" data-id=\"32c6fc9\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5151060 e-flex e-con-boxed e-con e-parent\" data-id=\"5151060\" 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-45c0323 elementor-widget elementor-widget-html\" data-id=\"45c0323\" 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<div id=\"wedding-planning\">\n    <h3>\u05e4\u05e8\u05d8\u05d9 \u05d9\u05dc\u05d3\u05d9\u05dd \u05d5\u05ea\u05db\u05e0\u05d5\u05df \u05d7\u05ea\u05d5\u05e0\u05d5\u05ea<\/h3>\n    \n    <label for=\"initial-deposit\">\u05e1\u05da \u05d4\u05e4\u05e7\u05d3\u05d4 \u05e8\u05d0\u05e9\u05d5\u05e0\u05d9\u05ea (\u05e9\"\u05d7):<\/label>\n    <input type=\"number\" id=\"initial-deposit\" required>\n    \n    <table id=\"input-table\">\n        <tr>\n            <th>\u05e9\u05dd \u05d4\u05d9\u05dc\u05d3<\/th>\n            <th>\u05d2\u05d9\u05dc \u05d4\u05d9\u05dc\u05d3<\/th>\n            <th>\u05d2\u05d9\u05dc \u05d7\u05ea\u05d5\u05e0\u05d4 \u05de\u05ea\u05d5\u05db\u05e0\u05df<\/th>\n            <th>\u05e1\u05db\u05d5\u05dd \u05de\u05ea\u05d5\u05db\u05e0\u05df \u05dc\u05d7\u05ea\u05d5\u05e0\u05d4 (\u05e9\"\u05d7)<\/th>\n        <\/tr>\n        <tr>\n            <td><input type=\"text\" class=\"child-name\" required><\/td>\n            <td><input type=\"number\" class=\"child-age\" required><\/td>\n            <td><input type=\"number\" class=\"child-wedding-age\" required><\/td>\n            <td><input type=\"number\" class=\"child-budget\" required><\/td>\n        <\/tr>\n    <\/table>\n    \n    <button id=\"add-row\">\u05d4\u05d5\u05e1\u05e3 \u05d9\u05dc\u05d3<\/button>\n    <br><br>\n    <button id=\"calculate-button\">\u05d1\u05e6\u05e2 \u05d7\u05d9\u05e9\u05d5\u05d1<\/button>\n<\/div>\n\n<div id=\"financial-plan\" style=\"display:none;\">\n    <h3>\u05ea\u05db\u05e0\u05d5\u05df \u05db\u05dc\u05db\u05dc\u05d9 \u05dc\u05d0\u05d5\u05e8\u05da \u05d6\u05de\u05df<\/h3>\n    <table id=\"output-table\">\n        <thead>\n            <tr>\n                <th>\u05d7\u05d5\u05d3\u05e9<\/th>\n                <th>\u05d4\u05e4\u05e7\u05d3\u05d4 \u05d7\u05d5\u05d3\u05e9\u05d9\u05ea (\u05e9\"\u05d7)<\/th>\n                <th>\u05d0\u05d7\u05d5\u05d6 \u05e8\u05d5\u05d5\u05d7 \u05e9\u05e0\u05ea\u05d9 (%)<\/th>\n                <th>\u05d3\u05de\u05d9 \u05e0\u05d9\u05d4\u05d5\u05dc \u05de\u05d4\u05e6\u05d1\u05d9\u05e8\u05d4 (%)<\/th>\n                <th>\u05de\u05d0\u05d6\u05df \u05d4\u05ea\u05d9\u05e7 (\u05e9\"\u05d7)<\/th>\n                <th>\u05de\u05e9\u05d9\u05db\u05d4 (\u05e9\"\u05d7)<\/th>\n            <\/tr>\n        <\/thead>\n        <tbody>\n            <!-- \u05d4\u05ea\u05d5\u05e6\u05d0\u05d4 \u05ea\u05d5\u05e6\u05d2 \u05db\u05d0\u05df -->\n        <\/tbody>\n    <\/table>\n<\/div>\n\n<script>\n    document.getElementById(\"add-row\").addEventListener(\"click\", function() {\n        let table = document.getElementById(\"input-table\");\n        let row = table.insertRow(-1);\n        row.innerHTML = `<td><input type=\"text\" class=\"child-name\" required><\/td>\n                         <td><input type=\"number\" class=\"child-age\" required><\/td>\n                         <td><input type=\"number\" class=\"child-wedding-age\" required><\/td>\n                         <td><input type=\"number\" class=\"child-budget\" required><\/td>`;\n    });\n\n    document.getElementById(\"calculate-button\").addEventListener(\"click\", function() {\n        let initialDeposit = parseFloat(document.getElementById(\"initial-deposit\").value);\n        if (isNaN(initialDeposit) || initialDeposit <= 0) {\n            alert(\"\u05d9\u05e9 \u05dc\u05d4\u05d6\u05d9\u05df \u05e1\u05db\u05d5\u05dd \u05d4\u05e4\u05e7\u05d3\u05d4 \u05e8\u05d0\u05e9\u05d5\u05e0\u05d9\u05ea \u05d7\u05d5\u05e7\u05d9.\");\n            return;\n        }\n        \n        \/\/ \u05db\u05d0\u05df \u05e0\u05d1\u05e6\u05e2 \u05d0\u05ea \u05d4\u05d7\u05d9\u05e9\u05d5\u05d1\u05d9\u05dd\n        let output = [];\n        let balance = initialDeposit;\n        let depositMonthly = 3000;  \/\/ \u05d3\u05d5\u05d2\u05de\u05ea \u05e1\u05db\u05d5\u05dd \u05d4\u05e4\u05e7\u05d3\u05d4 \u05d7\u05d5\u05d3\u05e9\u05d9\u05ea\n\n        for (let month = 1; month <= 60; month++) {  \/\/ \u05dc\u05d3\u05d5\u05d2\u05de\u05d4 5 \u05e9\u05e0\u05d9\u05dd (60 \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd)\n            let annualProfit = 10;\n            let managementFee = 0.8;\n\n            \/\/ \u05d7\u05d9\u05e9\u05d5\u05d1 \u05e8\u05d9\u05d1\u05d9\u05ea \u05d5\u05e0\u05d9\u05d4\u05d5\u05dc\n            balance += depositMonthly;\n            balance = balance * (1 + (annualProfit \/ 100) \/ 12);  \/\/ \u05e8\u05d5\u05d5\u05d7 \u05d7\u05d5\u05d3\u05e9\u05d9\n            balance -= (balance * (managementFee \/ 100));  \/\/ \u05d3\u05de\u05d9 \u05e0\u05d9\u05d4\u05d5\u05dc\n\n            output.push({\n                month: month,\n                deposit: depositMonthly,\n                annualProfit: annualProfit,\n                managementFee: managementFee,\n                balance: balance.toFixed(2),\n                withdrawal: 0\n            });\n        }\n\n        let tbody = document.querySelector(\"#output-table tbody\");\n        tbody.innerHTML = \"\"; \/\/ \u05e0\u05e7\u05d4 \u05d8\u05d1\u05dc\u05d4 \u05e7\u05d5\u05d3\u05de\u05ea\n\n        output.forEach(function(row) {\n            let tr = document.createElement(\"tr\");\n\n            let monthTd = document.createElement(\"td\");\n            monthTd.innerText = row.month;\n            tr.appendChild(monthTd);\n\n            let depositTd = document.createElement(\"td\");\n            depositTd.innerText = row.deposit;\n            tr.appendChild(depositTd);\n\n            let annualProfitTd = document.createElement(\"td\");\n            annualProfitTd.innerText = row.annualProfit;\n            tr.appendChild(annualProfitTd);\n\n            let managementFeeTd = document.createElement(\"td\");\n            managementFeeTd.innerText = row.managementFee;\n            tr.appendChild(managementFeeTd);\n\n            let balanceTd = document.createElement(\"td\");\n            balanceTd.innerText = row.balance;\n            tr.appendChild(balanceTd);\n\n            let withdrawalTd = document.createElement(\"td\");\n            withdrawalTd.innerText = row.withdrawal;\n            tr.appendChild(withdrawalTd);\n\n            tbody.appendChild(tr);\n        });\n\n        document.getElementById(\"financial-plan\").style.display = \"block\";\n    });\n<\/script>\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>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u05e4\u05e8\u05d8\u05d9 \u05d9\u05dc\u05d3\u05d9\u05dd \u05d5\u05ea\u05db\u05e0\u05d5\u05df \u05d7\u05ea\u05d5\u05e0\u05d5\u05ea \u05e1\u05da \u05d4\u05e4\u05e7\u05d3\u05d4 \u05e8\u05d0\u05e9\u05d5\u05e0\u05d9\u05ea (\u05e9&quot;\u05d7): \u05e9\u05dd \u05d4\u05d9\u05dc\u05d3 \u05d2\u05d9\u05dc \u05d4\u05d9\u05dc\u05d3 \u05d2\u05d9\u05dc \u05d7\u05ea\u05d5\u05e0\u05d4 \u05de\u05ea\u05d5\u05db\u05e0\u05df \u05e1\u05db\u05d5\u05dd \u05de\u05ea\u05d5\u05db\u05e0\u05df \u05dc\u05d7\u05ea\u05d5\u05e0\u05d4 (\u05e9&quot;\u05d7) \u05d4\u05d5\u05e1\u05e3 \u05d9\u05dc\u05d3 \u05d1\u05e6\u05e2 \u05d7\u05d9\u05e9\u05d5\u05d1 \u05ea\u05db\u05e0\u05d5\u05df \u05db\u05dc\u05db\u05dc\u05d9 \u05dc\u05d0\u05d5\u05e8\u05da \u05d6\u05de\u05df \u05d7\u05d5\u05d3\u05e9 \u05d4\u05e4\u05e7\u05d3\u05d4 \u05d7\u05d5\u05d3\u05e9\u05d9\u05ea (\u05e9&quot;\u05d7) \u05d0\u05d7\u05d5\u05d6 \u05e8\u05d5\u05d5\u05d7 \u05e9\u05e0\u05ea\u05d9 (%) \u05d3\u05de\u05d9 \u05e0\u05d9\u05d4\u05d5\u05dc \u05de\u05d4\u05e6\u05d1\u05d9\u05e8\u05d4 (%) \u05de\u05d0\u05d6\u05df \u05d4\u05ea\u05d9\u05e7 (\u05e9&quot;\u05d7) \u05de\u05e9\u05d9\u05db\u05d4 (\u05e9&quot;\u05d7)<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_angie_page":false,"footnotes":""},"class_list":["post-16","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/yossilevi.com\/index.php?rest_route=\/wp\/v2\/pages\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yossilevi.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yossilevi.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yossilevi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yossilevi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":14,"href":"https:\/\/yossilevi.com\/index.php?rest_route=\/wp\/v2\/pages\/16\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/yossilevi.com\/index.php?rest_route=\/wp\/v2\/pages\/16\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/yossilevi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}