{"id":23,"date":"2025-10-09T06:57:48","date_gmt":"2025-10-09T06:57:48","guid":{"rendered":"https:\/\/jalanemas.net\/?page_id=23"},"modified":"2025-10-11T18:07:13","modified_gmt":"2025-10-11T18:07:13","slug":"bonus","status":"publish","type":"page","link":"https:\/\/jalanemas.net\/index.php\/bonus\/","title":{"rendered":"Golden Gate"},"content":{"rendered":"\n<div class=\"project-calculator\">\n  <h2>Golden Gate<\/h2>\n\n  <label for=\"nilaiAwal\">Nilai Awal ($)<\/label>\n  <input type=\"number\" id=\"nilaiAwal\" placeholder=\"Masukkan nilai awal\" min=\"1\" step=\"any\" required>\n\n  <button onclick=\"hitungProyekUSD()\">Hitung<\/button>\n\n  <div id=\"hasilPerhitunganUSD\"><\/div>\n<\/div>\n\n<script>\nfunction hitungProyekUSD() {\n  const nilaiAwalInput = document.getElementById('nilaiAwal').value;\n  const hasilDiv = document.getElementById('hasilPerhitunganUSD');\n\n  \/\/ Validasi input\n  if (!nilaiAwalInput || isNaN(nilaiAwalInput) || parseFloat(nilaiAwalInput) <= 0) {\n    hasilDiv.innerHTML = '<p class=\"error\">\u26a0\ufe0f Please enter a valid initial value (positive number).<\/p>';\n    return;\n  }\n\n  const nilaiAwal = parseFloat(nilaiAwalInput);\n\n  \/\/ Variabel sesuai rumus spreadsheet\n  const persenSponsor = 0.05;         \/\/ 5%\n  const persenProfitBulanan = 0.125;  \/\/ 12.5% per bulan\n  const jumlahBulan = 12;             \/\/ 12 bulan\n  const persenSharingProfit = 0.10;   \/\/ 10% (dibagi 12 untuk per bulan)\n\n  \/\/ --- Kalkulasi ---\n  const sponsor = nilaiAwal * persenSponsor;\n  const profitBulanan = nilaiAwal * persenProfitBulanan;             \/\/ 12.5% x deposit\n  const totalProfit12Bulan = profitBulanan * jumlahBulan;            \/\/ 12 x profit bulanan = 150% x deposit\n  const sharingProfitPerBulan = (nilaiAwal * persenSharingProfit) \/ 12; \/\/ 10% \u00f7 12\n\n  \/\/ Format ke USD\n  const formatUSD = (angka) =>\n    new Intl.NumberFormat('en-US', {\n      style: 'currency',\n      currency: 'USD',\n      minimumFractionDigits: 2\n    }).format(angka);\n\n  \/\/ --- Hasil Output (urutan kolom sesuai permintaan) ---\n  hasilDiv.innerHTML = `\n    <div class=\"result-box\">\n      <!-- 1. Nominal Deposit -->\n      <div class=\"result-item\">\n        <span class=\"label\">Nominal Deposit<\/span>\n        <span class=\"value\">${formatUSD(nilaiAwal)}<\/span>\n      <\/div>\n\n      <!-- 2. Mofit Bulanan (12.5%) -->\n      <div class=\"result-item profit\">\n        <span class=\"label\">Mofit 12x<\/span>\n        <span class=\"value\">${formatUSD(profitBulanan)}<\/span>\n      <\/div>\n\n      <!-- 3. Total Mofit 12\u00d7 -->\n      <div class=\"result-item total\">\n        <span class=\"label\">Total Mofit 6 Bulan<\/span>\n        <span class=\"value\">${formatUSD(totalProfit12Bulan)}<\/span>\n      <\/div>\n\n      <!-- 4. Fee Sponsor (5%) -->\n      <div class=\"result-item sponsor\">\n        <span class=\"label\">Fee Sponsor<\/span>\n        <span class=\"value\">${formatUSD(sponsor)}<\/span>\n      <\/div>\n\n      <!-- 5. Sharing Profit (10% \u00f7 12) -->\n      <div class=\"result-item sharing\">\n        <span class=\"label\">Sharing Profit<\/span>\n        <span class=\"value\">${formatUSD(sharingProfitPerBulan)}<\/span>\n      <\/div>\n    <\/div>\n  `;\n}\n<\/script>\n\n<style>\n.project-calculator {\n  max-width: 520px;\n  margin: 20px auto;\n  padding: 25px;\n  border: 1px solid #ddd;\n  border-radius: 10px;\n  background-color: #f5f5f5;\n  box-shadow: 0 4px 12px rgba(0,0,0,0.1);\n}\n.project-calculator h2 {\n  text-align: center;\n  color: #333;\n  margin-bottom: 20px;\n}\n.project-calculator label {\n  display: block;\n  margin-top: 15px;\n  margin-bottom: 5px;\n  font-weight: bold;\n  color: #555;\n}\n.project-calculator input[type=\"number\"] {\n  width: 95%;\n  padding: 12px;\n  margin-bottom: 20px;\n  border: 1px solid #ccc;\n  border-radius: 6px;\n  font-size: 16px;\n}\n.project-calculator button {\n  background-color: #0073aa;\n  color: white;\n  padding: 12px 20px;\n  border: none;\n  border-radius: 6px;\n  cursor: pointer;\n  font-size: 18px;\n  font-weight: bold;\n  width: 100%;\n  transition: background-color 0.3s;\n}\n.project-calculator button:hover { background-color: #005177; }\n\n.result-box {\n  margin-top: 25px;\n  border-top: 2px solid #ddd;\n  padding-top: 15px;\n}\n.result-item {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 10px 0;\n  border-bottom: 1px dashed #eee;\n  flex-wrap: wrap;\n}\n.result-item:last-child { border-bottom: none; }\n.result-item .label { font-weight: 500; color: #333; flex-basis: 60%; }\n.result-item .value { font-weight: bold; font-size: 1.1em; text-align: right; flex-basis: 40%; }\n.result-item.profit .value { color: green; }\n.result-item.total { background-color: #fff8e1; padding: 15px 10px; border-radius: 6px; border: 1px solid #ffe082; }\n.result-item.total .value { color: #e0a800; font-size: 1.3em; }\n.error { color: red; font-weight: bold; text-align: center; margin-top: 15px; }\n<\/style>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Golden Gate Nilai Awal ($) Hitung<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/full-width.php","meta":{"_gspb_post_css":"","footnotes":""},"class_list":["post-23","page","type-page","status-publish","hentry"],"brizy_media":[],"_links":{"self":[{"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/pages\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":21,"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/pages\/23\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/pages\/23\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/jalanemas.net\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}