Simulatè pret
Estime fasil mansyalite ou yo ak dire ranbousman an dapre montan ak to ou bay la. Yon repè indikatif pou pi byen prepare pwojè ou.
Zouti indikatif pou estime kapasite ou. Sa a se pa yon òf ni yon angajman finansman. Kondisyon definitif yo depann de dosye ou.
Mansyalite estime'+fmt(M)+' '+cur+'
'+
'Montan pou finanse'+fmt(P)+' '+cur+'
'+
'Total enterè yo'+fmt(interets)+' '+cur+'
'+
'Ko total'+fmt(total)+' '+cur+'
';
var ratioTxt='';
if(rev>0){
var dispo=rev-charges, ratio=(charges+M)/rev;
var maxPay=Math.max(MAXR*rev-charges,0), maxLoan=principalFrom(maxPay,taux,years);
html+='Revni nèt fwaye a'+fmt(rev)+' '+cur+'
'+
'Chaj aktyèl'+fmt(charges)+' '+cur+'
'+
'Kapasite disponib'+fmt(dispo)+' '+cur+'
'+
'To andètman ak pret sa a'+(ratio*100).toFixed(0)+' %
'+
'Montan finansab konseye selon revni ou'+fmt(maxLoan)+' '+cur+'
';
var cls='rfx-sim-ok',msg='To andètman ou an san. Pwofil ou parèt alèz pou montan sa a.';
if(ratio>0.43){cls='rfx-sim-bad';msg='To andètman an wo. Yon montan pi ba, yon dire pi long oswa yon apò ta amelyore dosye ou.';}
else if(ratio>0.35){cls='rfx-sim-warn';msg='To andètman an merite siveyans. Ou rete nan yon zòn akseptab men limite.';}
html+=''+msg+'
';
ratioTxt=' Revni '+fmt(rev)+', chaj '+fmt(charges)+', to andètman '+(ratio*100).toFixed(0)+'%.';
} else {
html+='Ajoute revni ou ak chaj ou pou evalye kapasite ou ak montan finansab konseye a.
';
}
out.innerHTML=html;
var objet=$('rfxSimObjet').value;
var m='Bonjou REFLEXE. Similasyon finansman. Objè : '+objet+'. Montan '+fmt(P)+' '+cur+' sou '+years+' an, mansyalite estime '+fmt(M)+' '+cur+'.'+ratioTxt+' Mwen vle jwenn akonpayman.';
cta.href='https://wa.me/'+wa+'?text='+encodeURIComponent(m);
cta.style.display='inline-block';
}
var dM=box.getAttribute('data-montant'); if(dM)$('rfxSimMontant').value=dM;
var dD=box.getAttribute('data-duree'); if(dD)$('rfxSimDuree').value=dD;
var dDev=box.getAttribute('data-devise'); if(dDev&&RATES[dDev])$('rfxSimDev').value=dDev;
setRate();
['rfxSimMontant','rfxSimDuree','rfxSimTaux','rfxSimRev1','rfxSimRev2','rfxSimCharges','rfxSimObjet'].forEach(function(id){$(id).addEventListener('input',calc);});
$('rfxSimDev').addEventListener('change',function(){setRate();calc();});
calc();
})();