height
auto
config
[{"tag":"div","attributes":{"class":"rc-calc"},"children":[{"tag":"h2","attributes":{"class":"rc-title"},"children":[{"text":"Estimate the amount of points you could get from our Velocity Loaded Home Loan*."}]},{"tag":"div","attributes":{"class":"rc-layout"},"children":[{"tag":"div","attributes":{"class":"rc-steps"},"children":[{"tag":"div","attributes":{"class":"rc-step"},"children":[{"tag":"div","attributes":{"class":"rc-rail"},"children":[{"tag":"div","attributes":{"class":"rc-node"},"children":[{"text":"⌂"}]},{"tag":"div","attributes":{"class":"rc-line"},"children":[]}]},{"tag":"div","attributes":{"class":"rc-step-body"},"children":[{"tag":"h3","attributes":{},"children":[{"text":"Settlement"}]},{"tag":"p","attributes":{},"children":[{"text":"Your biggest reward starts at settlement. Enter a total loan amount to estimate your Settlement Bonus Points."}]},{"tag":"div","attributes":{"class":"rc-row"},"children":[{"tag":"div","attributes":{"class":"rc-input-card"},"children":[{"tag":"label","attributes":{},"children":[{"text":"Loan amount"}]},{"tag":"input","attributes":{"type":"text","id":"rcLoan","placeholder":"e.g. $600,000","inputmode":"numeric","autocomplete":"off"},"children":[]}]},{"tag":"div","attributes":{"class":"rc-pill"},"children":[{"tag":"strong","attributes":{"id":"rcSettlementPts"},"children":[{"text":"0"}]},{"tag":"span","attributes":{},"children":[{"text":"Settlement Points"}]}]}]},{"tag":"div","attributes":{"class":"rc-help","id":"rcLoanHelp"},"children":[{"text":"Minimum amount $20,000"}]}]}]},{"tag":"div","attributes":{"class":"rc-step"},"children":[{"tag":"div","attributes":{"class":"rc-rail"},"children":[{"tag":"div","attributes":{"class":"rc-node"},"children":[{"text":"2"}]}]},{"tag":"div","attributes":{"class":"rc-step-body"},"children":[{"tag":"h3","attributes":{},"children":[{"text":"Monthly Points"}]},{"tag":"p","attributes":{},"children":[{"text":"Earn 2,000 Velocity Points each month for each eligible borrower."}]},{"tag":"div","attributes":{"class":"rc-row"},"children":[{"tag":"div","attributes":{"class":"rc-input-card"},"children":[{"tag":"label","attributes":{},"children":[{"text":"Number of borrowers"}]},{"tag":"input","attributes":{"type":"text","id":"rcBorrowers","value":"1","placeholder":"Enter 1 or 2","inputmode":"numeric","autocomplete":"off"},"children":[]}]},{"tag":"div","attributes":{"class":"rc-pill"},"children":[{"tag":"strong","attributes":{"id":"rcMonthlyPts"},"children":[{"text":"2,000"}]},{"tag":"span","attributes":{},"children":[{"text":"Points per month"}]}]},{"tag":"div","attributes":{"class":"rc-pill"},"children":[{"tag":"strong","attributes":{"id":"rcAnnualPts"},"children":[{"text":"24,000"}]},{"tag":"span","attributes":{},"children":[{"text":"Points over 1 year"}]}]}]},{"tag":"div","attributes":{"class":"rc-help","id":"rcBorrowerHelp"},"children":[{"text":"Enter 1 or 2 eligible borrowers"}]}]}]}]}]},{"tag":"div","attributes":{"class":"rc-total"},"children":[{"tag":"span","attributes":{"class":"rc-total-label"},"children":[{"text":"Estimated Total over 1 year"}]},{"tag":"strong","attributes":{"class":"rc-total-value","id":"rcTotal"},"children":[{"text":"24,000"}]},{"tag":"span","attributes":{"class":"rc-total-type"},"children":[{"text":"Velocity Points"}]},{"tag":"a","attributes":{"class":"rc-enquire","href":"https://virginmoney.com.au/home-loans/enquire-now?cid=HL-58-2"},"children":[{"text":"Enquire now"}]}]}]},{"tag":"div","attributes":{"class":"rc-disclaimer"},"children":[{"tag":"p","attributes":{},"children":[{"text":"*This calculator is an estimate of the amount of Velocity Points you could get from the Virgin Money X Velocity Exclusive Offer. It is provided for illustrative purposes and does not determine your eligibility for a home loan or rewards, or the number of points you may actually receive."}]},{"tag":"p","attributes":{},"children":[{"text":"The estimate is based on the information you enter and assumes an eligible Loaded home loan and that the applicable offer terms and conditions continue to be met."}]}]}]},{"tag":"style","attributes":{},"children":[],"content":".rc-calc{background:#f7f7f8;font-family:Inter,Arial,sans-serif;color:#4b4d54;max-width:1180px;margin:0 auto;padding:72px 48px;box-sizing:border-box}.rc-title{font-size:42px;font-weight:800;line-height:1.08;text-align:center;margin:0 auto 58px;color:#4b4d54;max-width:900px}.rc-layout{display:flex;gap:70px;align-items:flex-start}.rc-steps{flex:1;min-width:0}.rc-step{display:flex;gap:28px;position:relative}.rc-rail{width:38px;display:flex;flex-direction:column;align-items:center;flex:0 0 38px}.rc-node{width:34px;height:34px;border-radius:50%;background:#e10a0a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:900;line-height:1;z-index:2}.rc-line{width:6px;background:#e10a0a;flex:1;min-height:100px}.rc-step-body{padding:2px 0 42px;flex:1}.rc-step-body h3{font-size:26px;line-height:1.1;color:#4b4d54;font-weight:800;margin:0 0 7px}.rc-step-body p{font-size:15px;color:#777982;line-height:1.4;margin:0 0 18px;max-width:600px}.rc-row{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap}.rc-input-card{width:350px;min-height:64px;background:#fff;border-radius:16px;padding:12px 18px;box-sizing:border-box}.rc-input-card label{display:block;font-size:11px;color:#777982;margin-bottom:5px}.rc-input-card input{width:100%;border:0;outline:0;background:transparent;font-size:18px;font-weight:800;color:#4b4d54;padding:0;font-family:inherit}.rc-input-card input::placeholder{color:#777982;opacity:1}.rc-pill{min-width:135px;background:#e3f4e6;border-radius:14px;padding:12px 16px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.rc-pill strong{font-size:20px;line-height:1;font-weight:900;color:#4b4d54}.rc-pill span{font-size:11px;color:#777982;margin-top:5px}.rc-help{font-size:12px;color:#777982;margin:8px 0 0 18px}.rc-help.error{color:#e10a0a}.rc-total{width:300px;background:#fff;border-radius:24px;padding:36px;box-sizing:border-box;box-shadow:0 2px 18px rgba(0,0,0,.03);position:sticky;top:24px}.rc-total-label{display:block;font-size:23px;font-weight:800;color:#4b4d54;margin-bottom:14px}.rc-total-value{display:block;font-size:52px;font-weight:900;line-height:.95;color:#4b4d54;letter-spacing:-1px}.rc-total-type{display:block;font-size:13px;color:#777982;margin-top:12px}.rc-enquire{display:inline-flex;margin-top:38px;background:#e10a0a;color:#fff!important;text-decoration:none;border-radius:8px;padding:17px 22px;font-size:15px;font-weight:900}.rc-enquire:hover{background:#e10a0a}.rc-disclaimer{margin-top:46px;padding-top:24px;border-top:1px solid #dedee2;font-size:12px;line-height:1.55;color:#686a72}.rc-disclaimer p{margin:0 0 10px}@media(max-width:900px){.rc-calc{padding:48px 20px}.rc-title{font-size:32px;margin-bottom:36px}.rc-layout{display:block}.rc-total{width:100%;position:static;margin-top:10px}.rc-row{display:block}.rc-input-card{width:100%;margin-bottom:10px}.rc-pill{display:inline-flex;margin:0 8px 8px 0}.rc-step{gap:18px}.rc-step-body h3{font-size:22px}.rc-disclaimer{margin-top:32px}}","children":[]},{"tag":"script","attributes":{},"children":[],"content":"(function(){function init(){var root=document.querySelector('.rc-calc');if(!root)return;var loan=root.querySelector('#rcLoan');var borrowers=root.querySelector('#rcBorrowers');var settlement=root.querySelector('#rcSettlementPts');var monthly=root.querySelector('#rcMonthlyPts');var annual=root.querySelector('#rcAnnualPts');var total=root.querySelector('#rcTotal');var loanHelp=root.querySelector('#rcLoanHelp');var borrowerHelp=root.querySelector('#rcBorrowerHelp');if(!loan||!borrowers||!settlement||!monthly||!annual||!total)return;function num(value){return parseInt(String(value||'').replace(/[^0-9]/g,''),10)||0}function money(value){return value?'$'+value.toLocaleString('en-AU'):''}function points(value){return Math.round(value||0).toLocaleString('en-AU')}function calculate(){var loanAmount=num(loan.value);var borrowerCount=num(borrowers.value);if(borrowerCount<1)borrowerCount=1;if(borrowerCount>2)borrowerCount=2;var settlementPoints=loanAmount>=20000?(loanAmount/10000)*2000:0;var monthlyPoints=2000*borrowerCount;var annualPoints=monthlyPoints*12;settlement.textContent=points(settlementPoints);monthly.textContent=points(monthlyPoints);annual.textContent=points(annualPoints);total.textContent=points(settlementPoints+annualPoints);if(loanHelp){if(loanAmount>0&&loanAmount<20000){loanHelp.textContent='Please enter an amount of at least $20,000';loanHelp.classList.add('error')}else{loanHelp.textContent='Minimum amount $20,000';loanHelp.classList.remove('error')}}if(borrowerHelp){if(num(borrowers.value)>2){borrowerHelp.textContent='Maximum 2 eligible borrowers';borrowerHelp.classList.add('error')}else{borrowerHelp.textContent='Enter 1 or 2 eligible borrowers';borrowerHelp.classList.remove('error')}}}loan.addEventListener('input',function(){var value=num(loan.value);loan.value=value?money(value):'';calculate()});loan.addEventListener('blur',function(){var value=num(loan.value);loan.value=value?money(value):'';calculate()});borrowers.addEventListener('input',function(){var value=num(borrowers.value);borrowers.value=value?String(value):'';calculate()});borrowers.addEventListener('blur',function(){var value=num(borrowers.value);if(value<1)value=1;if(value>2)value=2;borrowers.value=String(value);calculate()});calculate()}if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',init)}else{init()}setTimeout(init,100)})();"}]