'+
'
'+fmt(loProfit)+' AED
'+
'
Margin: '+adjustedLo.toFixed(1)+'%
'+
'
Annual: '+fmt(loProfit*12)+' AED
'+
'
Minimum Expectation'+
'
'+
'
'+
'
⚖️ Realistic (Likely)
'+
'
'+fmt(midProfit)+' AED
'+
'
Margin: '+adjustedMid.toFixed(1)+'%
'+
'
Annual ROI: '+roi.toFixed(1)+'% | Payback: '+(payback>0?payback.toFixed(1)+' months':'—')+'
'+
'
Most Probable'+
'
'+
'
'+
'
Aggressive (Ceiling)
'+
'
'+fmt(hiProfit)+' AED
'+
'
Margin: '+adjustedHi.toFixed(1)+'%
'+
'
Annual: '+fmt(hiProfit*12)+' AED
'+
'
Best Case'+
'
';var rows='
| Item | % of Revenue | Monthly (AED) |
|---|
';
rows+='
| Staff Payroll ('+(mgmt==='us'?'With Our Management':'Owner-Managed')+') | '+adjustedPr.toFixed(1)+'% | '+fmt(rev*adjustedPr/100)+' |
';
var totalCostPct=adjustedPr;
for(var k in d.cost){ var pct=d.cost[k]; totalCostPct+=pct; rows+='
| '+k+' | '+pct+'% | '+fmt(rev*pct/100)+' |
'; }
rows+='
| Total Costs | '+totalCostPct.toFixed(1)+'% | '+fmt(rev*totalCostPct/100)+' |
';
rows+='
| Net Profit (Average) | '+adjustedMid.toFixed(1)+'% | '+fmt(rev*adjustedMid/100)+' |
';
document.getElementById('breakdown').innerHTML=rows;var sensRows='
| Variable | Change | Impact on Monthly Profit | Impact on Payback |
|---|
';
var revChange=rev*0.2*adjustedMid/100;
var payChange=payback>0?-(price/(midProfit+revChange)-payback):0;
sensRows+='
| Revenue +20% | +'+fmt(rev*0.2)+' AED | +'+fmt(revChange)+' AED | '+(payback>0?'-'+payChange.toFixed(1)+' mo':'—')+' |
';
var payChange2=payback>0?(price/(midProfit-rev*0.1*adjustedMid/100)-payback):0;
sensRows+='
| Payroll -10% | -'+fmt(rev*adjustedPr*0.1)+' AED | +'+fmt(rev*adjustedPr*0.1)+' AED | '+(payback>0?'-'+payChange2.toFixed(1)+' mo':'—')+' |
';
var priceChange=price*0.15;
var payChange3=payback>0?(price*0.85/midProfit-payback):0;
sensRows+='
| Purchase Price -15% | -'+fmt(priceChange)+' AED | No change | '+(payback>0?'-'+Math.abs(payChange3).toFixed(1)+' mo':'—')+' |
';
document.getElementById('sensitivity').innerHTML=sensRows;
document.getElementById('sensitivityConclusion').textContent='✅ Highest impact variable: '+(revChange>rev*adjustedPr*0.1?'Revenue (+20%)':'Payroll (-10%)')+' — Your profit increases by '+(revChange>rev*adjustedPr*0.1?fmt(revChange):fmt(rev*adjustedPr*0.1))+' AED';var recs='';
if(adjustedMid
⚠️
Low profit margin ('+adjustedMid.toFixed(1)+'%)
Focus on reducing fixed costs + renegotiate rent + use rotating staff
';
}
if(adjustedPr>25){
recs+='
High payroll ('+adjustedPr.toFixed(1)+'%)
Use rotating staff across branches + shared finance/marketing/sales units
';
}
if(q.mult
Purchase price below market ('+q.mult.toFixed(2)+'x)
Thorough document review — hidden issues may exist
';
}
if(mgmt==='self'){
recs+='
Self-managed
Switch to "Professional Management" and increase profit by '+fmt(rev*nm.sav/100)+' AED
';
}
if(recs===''){
recs='
✅
Overall good condition
Focus on growth and scalability + check similar listings
';
}
document.getElementById('recommendations').innerHTML=recs;var benchRows='
| Metric | You | Dubai Market Avg | Status |
|---|
';
var marketMargin=d.net.mid;
benchRows+='
| Profit Margin | '+adjustedMid.toFixed(1)+'% | '+marketMargin+'% | '+(adjustedMid>marketMargin?'Above Market':'Below Market')+' |
';
benchRows+='
| Staff Payroll | '+adjustedPr.toFixed(1)+'% | '+d.payrollSelf+'% | '+(adjustedPrBetter Than Market':'Worse Than Market')+' |
';
benchRows+='
| Payback Period | '+(payback>0?payback.toFixed(1)+' months':'—')+' | 36–48 months | '+(payback>0&&paybackFaster':'Slower')+' |
';
document.getElementById('benchmark').innerHTML=benchRows;var healthScore=Math.min(100,Math.max(0,adjustedMid*2.5+(100-adjustedPr)*0.5+(q.boost>0?10:0)+(mgmt==='us'?5:0)));
document.getElementById('healthScore').textContent=Math.round(healthScore);
document.getElementById('healthCircle').style.setProperty('--score',healthScore+'%');
var profScore=Math.min(25,adjustedMid*2.5);
var costScore=Math.min(25,(100-adjustedPr)*0.5);
var growthScore=Math.min(25,mgmt==='us'?20:10);
var qualityScore=Math.min(25,q.boost*5);
document.getElementById('healthBreakdown').innerHTML=
'
Performance
'+profScore.toFixed(0)+'/25
'+
'
Cost Efficiency
'+costScore.toFixed(0)+'/25
'+
'
Growth Potential
'+growthScore.toFixed(0)+'/25
'+
'
Purchase Quality
'+qualityScore.toFixed(0)+'/25
';
var interp='';
if(healthScore>=80) interp='
Excellent — Strong partnership opportunity';
else if(healthScore>=60) interp='
Good — High potential with optimization';
else if(healthScore>=40) interp='
Average — Needs deeper review';
else interp='
Weak — High risk, consult advised';
document.getElementById('healthInterpretation').innerHTML=interp;var tl='
◆ Setup
Months 1–3
Revenue: '+fmt(rev)+' AED | Profit: '+fmt(rev*adjustedMid/100)+' AED
Team optimization + system setup + training
';
var r2=rev*Math.pow(1+(mgmt==='us'?d.growth:0),3);
tl+='
◆ Initial Growth
Months 4–6
Revenue: '+fmt(r2)+' AED | Profit: '+fmt(r2*adjustedMid/100)+' AED
Ad campaign + customer acquisition + CAC optimization
';
var r3=rev*Math.pow(1+(mgmt==='us'?d.growth:0),6);
tl+='
◆ Stabilization
Months 7–9
Revenue: '+fmt(r3)+' AED | Profit: '+fmt(r3*adjustedMid/100)+' AED
Retention increase + CRM + loyalty program
';
var r4=rev*Math.pow(1+(mgmt==='us'?d.growth:0),9);
tl+='
◆ Scaling
Months 10–12
Revenue: '+fmt(r4)+' AED | Profit: '+fmt(r4*adjustedMid/100)+' AED
Branch expansion + networking + branding
';
document.getElementById('timeline').innerHTML=tl;var comp='
| Industry | Monthly Profit (Avg) | Annual Profit | Return on Capital | Payback |
|---|
';
for(var kk in DATA){
var dk=DATA[kk]; var n2=netMid(dk,mgmt,price,rev); var pm=rev*n2.mid/100; var an=pm*12;
var r2=price>0?an/price*100:0; var pb=pm>0&&price>0?price/pm:0;
var hl=(kk===cat)?' class="highlight"':'';
comp+='
| '+dk.name+' | '+fmt(pm)+' | '+fmt(an)+' | '+r2.toFixed(1)+'% | '+(pb>0?pb.toFixed(1)+' mo':'—')+' |
';
}
document.getElementById('compare').innerHTML=comp;var pb='';
if(revLean Strategy — Small Business ('+
'
- Maximum savings, minimum risk
- Focus on one customer acquisition channel
- Use rotating staff to reduce costs
- Renegotiate rent and contracts
';
} else if(revGrowth Strategy — Medium Business (AED 500K–2M/month)'+
'
- Optimization + controlled growth
- Multiple acquisition channels (online + offline)
- Launch CRM and loyalty program
- Evaluate second branch opportunity
';
} else {
pb='
Scale Strategy — Large Business (> AED 2M/month)
'+
'
- Branch expansion, networking
- Professional branding and strong online presence
- Group purchasing and supplier negotiation
- Systematization and process documentation
';
}
pb+='
Key savings with our management:
'+
'
- Rotating staff across branches: payroll from '+d.payrollSelf+'% to '+d.payrollUs+'%
- Shared units: finance, marketing, sales, accounting, purchasing
- Shared physicians in clinics (no exclusive contracts)
- Group purchasing with discounts and installments
- Centralized professional ad campaigns
';
document.getElementById('playbook').innerHTML=pb;document.getElementById('shareUrl').textContent='globexhorizon.com/calc?r='+Math.round(rev)+'&p='+Math.round(price)+'&t='+cat+'&m='+mgmt;
}
function copyLink(){
var url=document.getElementById('shareUrl').textContent;
navigator.clipboard.writeText(url).then(function(){alert('Link copied: '+url);});
}