Mass deportation price tag: roughly £20–35 billion, with years of gridlock
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=IBM+Plex+Serif:wght@400;500&display=swap');
.tsotm-article {
--paper:#f8f5f0;
--ink:#111;
--muted:#666;
--rule:#222;
--accent:#262626;
background: var(--paper);
color: var(--ink);
font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
line-height: 1.9;
font-size: 18.5px;
max-width: 880px;
margin: 0 auto;
padding: clamp(22px, 3vw, 38px);
text-rendering: optimizeLegibility;
}
.tsotm-progress {
position: sticky;
top: 0;
height: 6px;
background: linear-gradient(90deg, #000 0% 0%, rgba(0,0,0,.08) 0% 100%);
border-radius: 4px;
margin-bottom: 20px;
z-index: 2;
animation: progressGrow 3s ease-out;
}
@keyframes progressGrow {
0% { background: linear-gradient(90deg, #000 0% 0%, rgba(0,0,0,.08) 0% 100%); }
100% { background: linear-gradient(90deg, #000 0% 80%, rgba(0,0,0,.08) 80% 100%); }
}
.tsotm-header { text-align: center; margin-bottom: 26px; }
.tsotm-kicker { font-family:"Playfair Display",serif; letter-spacing:.4px; font-weight:700; font-size:1rem; color:var(--muted); text-transform:uppercase; }
.tsotm-title { font-family:"Playfair Display",serif; font-size:clamp(34px,3vw+20px,48px); line-height:1.2; margin:12px 0 10px; font-weight:700; }
.tsotm-subtitle { font-family:"Playfair Display",serif; font-size:clamp(18px,2vw+12px,24px); line-height:1.3; margin:12px 0; font-style:italic; color:var(--muted); }
.tsotm-info { font-size:1rem; color:#444; }
.tsotm-hero { margin:20px 0 10px; }
.tsotm-hero img{ width:100%; height:auto; max-height:360px; object-fit:cover; display:block; border-radius:6px; border:1px solid rgba(0,0,0,.12); background:#fff; }
.tsotm-hero figcaption{ font-size:.9rem; color:#777; margin-top:6px; text-align:right; font-style:italic; }
.tsotm-body { margin-top:20px; text-align:justify; hyphens:auto; }
.tsotm-body p { margin:1.2em 0; max-width:68ch; margin-inline:auto; }
.tsotm-body p:first-of-type::first-letter { float:left; font-family:"Playfair Display",serif; font-weight:700; font-size:3.6rem; line-height:.9; padding:6px 12px 0 0; color:var(--accent); }
.tsotm-body h2 { font-family:"Playfair Display",serif; font-size:clamp(25px,1.5vw+18px,32px); margin:2em auto 1em; border-top:2px solid var(--rule); padding-top:.7em; max-width:68ch; }
.tsotm-body h3 { font-family:"Playfair Display",serif; font-size:22px; margin:1.5em auto .6em; max-width:68ch; }
.tsotm-rule { height:1px; background:linear-gradient(90deg,#000,transparent); margin:26px 0; }
.tsotm-data-section {
margin: 2.5em 0;
background: rgba(255,255,255,0.8);
border-radius: 8px;
padding: 1.5em;
border: 1px solid rgba(0,0,0,0.08);
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
max-width: 68ch;
margin-inline: auto;
}
.tsotm-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1em;
margin: 1.5em 0;
}
.tsotm-stat-card {
background: white;
padding: 1.2em;
border-radius: 6px;
text-align: center;
border: 1px solid rgba(0,0,0,0.08);
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
transition: transform 0.2s ease;
}
.tsotm-stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tsotm-stat-number {
font-family: "Playfair Display", serif;
font-size: 2.2em;
font-weight: 700;
color: var(--accent);
line-height: 1;
margin-bottom: 0.3em;
}
.tsotm-stat-label {
font-size: 0.85em;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Webador-compatible table styling */
.webador-table {
width: 100%;
border-collapse: collapse;
margin: 1.5em 0;
font-family: "IBM Plex Serif", serif;
font-size: 0.9em;
background: white;
border: 1px solid #ddd;
}
.webador-table th {
background: #262626;
color: #f8f5f0;
padding: 12px 15px;
text-align: left;
font-weight: 500;
border: 1px solid #ddd;
}
.webador-table td {
padding: 10px 15px;
border: 1px solid #ddd;
vertical-align: top;
}
.webador-table tr:nth-child(even) {
background: #f9f9f9;
}
.highlight-critical { color: #c0392b; font-weight: 500; }
.highlight-warning { color: #e67e22; font-weight: 500; }
.highlight-positive { color: #27ae60; font-weight: 500; }
/* Chart Containers */
.chart-container {
background: white;
border-radius: 8px;
padding: 1.5em;
margin: 1.5em 0;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
position: relative;
}
.chart-title {
font-family: "Playfair Display", serif;
font-size: 1.3em;
font-weight: 700;
text-align: center;
margin-bottom: 1em;
color: var(--accent);
}
.chart-wrapper {
position: relative;
height: 400px;
margin: 20px 0;
}
.chart-small {
height: 300px;
}
/* Cost Breakdown Visual */
.cost-breakdown-visual {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1em;
margin: 1.5em 0;
}
.cost-item {
background: white;
padding: 1.5em;
border-radius: 6px;
text-align: center;
border: 1px solid rgba(0,0,0,0.08);
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
border-left: 4px solid #c0392b;
}
.cost-amount {
font-family: "Playfair Display", serif;
font-size: 2em;
font-weight: 700;
color: #c0392b;
margin-bottom: 0.3em;
}
.cost-label {
font-size: 0.8em;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Interactive Calculator */
.calculator-section {
background: rgba(255,255,255,0.9);
border-radius: 8px;
padding: 1.5em;
margin: 1.5em 0;
border: 1px solid rgba(0,0,0,0.08);
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.calculator-input {
display: flex;
align-items: center;
margin: 1em 0;
justify-content: space-between;
}
.calculator-input label {
font-weight: 500;
color: var(--accent);
flex: 1;
}
.calculator-input input {
width: 120px;
padding: 8px 12px;
border: 1px solid rgba(0,0,0,0.2);
border-radius: 4px;
font-size: 1em;
font-family: "IBM Plex Serif", serif;
}
.calculator-result {
background: var(--accent);
color: var(--paper);
padding: 1.2em;
border-radius: 6px;
text-align: center;
margin-top: 1em;
font-family: "Playfair Display", serif;
font-size: 1.2em;
font-weight: 700;
}
/* Comparison Grid */
.comparison-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 1em;
margin: 1.5em 0;
}
.comparison-item {
background: white;
padding: 1.2em;
border-radius: 6px;
text-align: center;
border: 1px solid rgba(0,0,0,0.08);
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
border-left: 4px solid #27ae60;
}
.comparison-amount {
font-family: "Playfair Display", serif;
font-size: 1.6em;
font-weight: 700;
color: #27ae60;
margin-bottom: 0.3em;
}
.comparison-label {
font-size: 0.8em;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.3px;
}
/* Quote Box */
.quote-box {
background: rgba(255,255,255,0.9);
border-left: 4px solid #e67e22;
padding: 1.5em;
margin: 1.5em 0;
border-radius: 0 6px 6px 0;
font-style: italic;
font-size: 1.05em;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.source-citation {
font-size: 0.8em;
color: var(--muted);
margin-top: 10px;
font-style: normal;
}
/* Methodology Box */
.methodology-box {
background: rgba(255,255,255,0.9);
border: 1px solid rgba(0,0,0,0.1);
padding: 1.5em;
border-radius: 6px;
margin: 1.5em 0;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.methodology-box h4 {
font-family: "Playfair Display", serif;
color: var(--accent);
margin-bottom: 0.8em;
font-size: 1.1em;
}
/* Responsive Design */
@media (max-width: 768px) {
.tsotm-stats-grid {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.cost-breakdown-visual,
.comparison-grid {
grid-template-columns: 1fr;
}
.calculator-input {
flex-direction: column;
align-items: stretch;
gap: 0.5em;
}
.calculator-input input {
width: 100%;
}
}
Political rhetoric around mass deportation has reached fever pitch in Britain, with various factions promising swift removal of hundreds of thousands of undocumented migrants. Yet beneath the theatrical posturing lies a stark fiscal and operational reality: Britain lacks both the financial resources and institutional capacity to execute such policies.
£28,000
Average Cost Per Deportation
900K
Estimated Undocumented Population
2,200
Total Detention Beds Available
34,000
Actual Removals in 2024
Our investigation reveals that comprehensive deportation would cost between £20-35 billion—potentially exceeding the entire Home Office budget—while straining an already overwhelmed enforcement system to breaking point. This analysis examines the true costs of mass deportation against Britain's current enforcement capabilities, legal constraints, and alternative policy frameworks.
The Arithmetic of Enforcement
The financial mechanics of deportation are straightforward, if expensive. Government data provides clear unit costs for each stage of the removal process, allowing precise calculations of what mass deportation would actually cost the British taxpayer.
£12,000
Average Removal Flight
£1,350
Legal Appeal Costs
£1,000
Home Office Casework
Cost Breakdown Per Deportation
Detention represents the largest single expense. Immigration Removal Centres charge £122 per person per day, according to Home Office figures. With an average detention period of 28 days before removal or release, each case costs £3,416 in accommodation alone. For cases involving appeals—which comprise roughly 60% of all detention cases—this period extends significantly, often reaching 60-90 days.
Cost Component |
Minimum (£) |
Maximum (£) |
Average (£) |
Notes |
Detention (28-90 days) |
3,416 |
10,980 |
7,320 |
£122/day, varies by appeal duration |
Removal Operations |
10,000 |
15,000 |
12,000 |
Charter flights, escorts, security |
Legal/Tribunal Costs |
1,350 |
1,350 |
1,350 |
Per appeal, excluding legal aid |
Administrative Processing |
1,000 |
1,000 |
1,000 |
Home Office casework |
Overhead (15-20%) |
3,000 |
6,000 |
4,500 |
Infrastructure, management |
Total Per Deportation |
19,350 |
36,350 |
28,000 |
All-in cost estimate |
Methodology Note
Cost figures derived from Home Office Immigration Statistics Q4 2024, NAO Immigration Enforcement Reports 2023-24, and Treasury costings for Immigration Removal Centres. Detention periods based on tribunal processing times and appeal rates from Immigration and Asylum Chamber statistics.
Scale and Scope: The Population Challenge
Determining the size of Britain's undocumented population requires triangulating various data sources, as no official register exists. Academic estimates, visa overstay statistics, and enforcement data provide the most reliable indicators.
Population Estimates by Source
Category |
Estimated Size |
Annual Increase |
Detection Rate |
Primary Sources |
Visa Overstays |
400,000-600,000 |
65,000-75,000 |
15-20% |
Tourist, student, work visas |
Failed Asylum Seekers |
150,000-250,000 |
20,000-25,000 |
30-40% |
Rejected claims, appeals exhausted |
EU Settlement Issues |
100,000-200,000 |
Variable |
5-10% |
Failed applications, non-applicants |
Clandestine Entry |
50,000-150,000 |
45,000-50,000 |
25-35% |
Channel crossings, lorry routes |
Total Estimate |
700,000-1,200,000 |
130,000-150,000 |
18-25% |
Multiple overlapping sources |
Institutional Bottlenecks
Britain's immigration enforcement system operates under severe capacity constraints that would make mass deportation practically impossible, regardless of political will or financial resources.
Current vs Required Enforcement Capacity
System Component |
Current Capacity |
Annual Throughput |
Required for Mass Deportation |
Multiplier Needed |
Detention Beds |
2,200 |
32,000 |
200,000-400,000 |
6-12x |
Immigration Tribunals |
50 judges |
50,000 cases |
300,000-600,000 |
6-12x |
Enforcement Officers |
5,000 |
750,000 actions |
1,000,000+ actions |
1.5-2x |
Actual Removals (2024) |
- |
34,000 |
300,000-600,000 |
9-18x |
"The tribunal system processes roughly 50,000 cases annually, meaning that even maintaining current backlogs would require doubling judicial capacity. Adding hundreds of thousands of new deportation cases would overwhelm the system entirely."
— Immigration and Asylum Chamber Statistics, 2024
Legal Architecture: Human Rights Constraints
Britain's legal framework incorporates substantial protections against arbitrary deportation, creating procedural requirements that add both time and cost to removal processes.
Legal Challenge Success Rates
The Human Rights Act 1998 incorporates the European Convention on Human Rights into domestic law, establishing protections against torture, degrading treatment, and arbitrary detention. The Supreme Court's Rwanda ruling demonstrates these constraints in practice, finding that human rights protections cannot be simply legislated away.
Comparative Context: Government Spending
Placing deportation costs within the broader context of government spending reveals the magnitude of the fiscal commitment required for mass removal policies.
Mass Deportation vs Major Government Spending
£20-35bn
Mass Deportation Cost
Mass deportation would cost 80-140% of the entire Home Office budget, requiring either doubling departmental funding or abandoning most other functions including police funding, border security, and counter-terrorism operations.
The Regularisation Alternative
Economic analysis suggests that regularising undocumented migrants would generate substantially more revenue than deportation would cost, while addressing many of the same policy objectives more effectively.
10-Year Fiscal Impact: Deportation vs Regularisation
Deportation Costs
-£35bn
One-time cost, no ongoing benefit
Regularisation Benefits
+£56bn
Cumulative tax revenue over 10 years
Net Difference: £91 billion in favour of regularisation
Revenue Stream |
Annual Amount (£bn) |
10-Year Total (£bn) |
Assumptions |
Income Tax & NI |
2.0-3.5 |
20-35 |
700k-1.2m workers, £15k-25k average salary |
Employer NI |
0.5-0.8 |
5-8 |
13.8% employer contributions |
VAT & Consumption |
0.8-1.2 |
8-12 |
Increased consumer spending |
Council Tax |
0.3-0.5 |
3-5 |
Housing regularisation |
Reduced Costs (Hotels etc.) |
2.0 |
20 |
Asylum accommodation savings |
Total Net Benefit |
5.6-7.0 |
56-80 |
Conservative estimates |
"Tax revenue potential from regularisation is substantial. Undocumented workers typically earn £15,000-25,000 annually. Bringing this income into the formal tax system would generate £2-3.5 billion annually in income tax, National Insurance contributions, and VAT."
— Analysis based on OBR fiscal multipliers and HMRC tax statistics
Political Theatre: Digital ID and Avoidance
Recent political discourse has increasingly focused on "digital ID" systems and technological solutions to immigration enforcement, yet these proposals represent political theatre rather than serious policy development.
Digital ID systems cannot address the fundamental capacity constraints identified above. Electronic monitoring might reduce detention costs marginally, but it cannot overcome tribunal backlogs, legal protections, or international cooperation requirements. The core bottlenecks in immigration enforcement are legal and administrative, not technological.
Political focus on technological solutions appears designed to avoid confronting the fiscal and operational realities of current policy. Rather than acknowledging the impossibility of mass deportation or considering alternative approaches like regularisation, politicians propose futuristic solutions that shift responsibility to future administrations.
Fiscal Reality Check: The Books Don't Lie
The financial analysis presented above leads to an inescapable conclusion: Britain cannot afford mass deportation at anything approaching the scale suggested by political rhetoric. The £20-35 billion cost represents one of the largest single policy expenditures in modern British history.
These costs would materialise over 3-5 years, requiring sustained spending commitments across multiple electoral cycles. Even with optimistic assumptions about efficiency gains and technological improvements, mass deportation would cost £15-25 billion at minimum.
The opportunity costs are equally significant. Resources devoted to mass deportation could alternatively fund substantial improvements to healthcare, education, infrastructure, or other public priorities. The choice to prioritise deportation over investment represents a fundamental values judgment with far-reaching implications for British society.
The comparison with regularisation revenues is particularly striking. While deportation would cost £20-35 billion, regularisation could generate equivalent amounts in tax revenue while preserving economic capacity and addressing labour shortages. The fiscal case for regularisation over deportation is overwhelming.
Conclusion
This investigation reveals that mass deportation rhetoric in British politics operates entirely disconnected from fiscal and operational reality. The numbers tell a clear story: Britain lacks the detention capacity, judicial resources, and enforcement personnel to conduct mass deportations. The real immigration crisis is not small boat arrivals or visa overstays, but the political system's refusal to align policy ambitions with budgetary reality.
').getContext('2d');
new Chart(costCtx, {
type: 'doughnut',
data: {
labels: ['Detention', 'Removal Operations', 'Legal Costs', 'Administrative', 'Overhead'],
datasets: [{
data: [7320, 12000, 1350, 1000, 4500],
backgroundColor: ['#c0392b', '#e74c3c', '#f39c12', '#f1c40f', '#e67e22'],
borderWidth: 2,
borderColor: '#f8f5f0'
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'bottom',
labels: {
padding: 20,
usePointStyle: true
}
},
tooltip: {
callbacks: {
label: function(context) {
return context.label + ': £' + context.parsed.toLocaleString();
}
}
}
}
}
});
// Population Estimates Chart
const popCtx = document.getElementById('populationEstimatesChart').getContext('2d');
new Chart(popCtx, {
type: 'bar',
data: {
labels: ['Pew Research', 'Oxford Migration Observatory', 'LSE', 'Home Office Internal'],
datasets: [{
label: 'Lower Estimate',
data: [800000, 700000, 900000, 650000],
backgroundColor: '#3498db',
borderColor: '#2980b9',
borderWidth: 1
}, {
label: 'Upper Estimate',
data: [1200000, 900000, 1200000, 850000],
backgroundColor: '#e74c3c',
borderColor: '#c0392b',
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
ticks: {
callback: function(value) {
return (value / 1000000).toFixed(1) + 'M';
}
}
}
},
plugins: {
legend: {
position: 'top'
},
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.parsed.y.toLocaleString();
}
}
}
}
}
});
// Capacity Chart
const capacityCtx = document.getElementById('capacityChart').getContext('2d');
new Chart(capacityCtx, {
type: 'bar',
data: {
labels: ['Detention Beds', 'Tribunal Capacity', 'Enforcement Officers', 'Annual Removals'],
datasets: [{
label: 'Current Capacity',
data: [32000, 50000, 750000, 34000],
backgroundColor: '#27ae60',
borderColor: '#229954',
borderWidth: 1
}, {
label: 'Required for Mass Deportation',
data: [300000, 400000, 1000000, 400000],
backgroundColor: '#e74c3c',
borderColor: '#c0392b',
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
type: 'logarithmic',
ticks: {
callback: function(value) {
if (value >= 1000000) return (value / 1000000).toFixed(1) + 'M';
if (value >= 1000) return (value / 1000).toFixed(0) + 'K';
return value;
}
}
}
},
plugins: {
legend: {
position: 'top'
},
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.parsed.y.toLocaleString();
}
}
}
}
}
});
// Legal Challenges Chart
const legalCtx = document.getElementById('legalChallengesChart').getContext('2d');
new Chart(legalCtx, {
type: 'horizontalBar',
data: {
labels: ['Article 3 (Torture)', 'Article 8 (Family Life)', 'Refugee Convention', 'Procedural Issues'],
datasets: [{
label: 'Success Rate (%)',
data: [35, 28, 42, 15],
backgroundColor: ['#e74c3c', '#f39c12', '#3498db', '#95a5a6'],
borderColor: ['#c0392b', '#e67e22', '#2980b9', '#7f8c8d'],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
indexAxis: 'y',
scales: {
x: {
beginAtZero: true,
max: 50,
ticks: {
callback: function(value) {
return value + '%';
}
}
}
},
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
return 'Success Rate: ' + context.parsed.x + '%';
}
}
}
}
}
});
// Spending Comparison Chart
const spendingCtx = document.getElementById('spendingComparisonChart').getContext('2d');
new Chart(spendingCtx, {
type: 'bar',
data: {
labels: ['NHS', 'Defence', 'Home Office', 'Adult Social Care', 'Mass Deportation (Low)', 'Mass Deportation (High)'],
datasets: [{
label: 'Annual Spending (£ billions)',
data: [205, 56.9, 25, 22, 20, 35],
backgroundColor: ['#27ae60', '#3498db', '#f39c12', '#9b59b6', '#e74c3c', '#c0392b'],
borderColor: ['#229954', '#2980b9', '#e67e22', '#8e44ad', '#c0392b', '#a93226'],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
ticks: {
callback: function(value) {
return '£' + value + 'bn';
}
}
}
},
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
return context.label + ': £' + context.parsed.y + ' billion';
}
}
}
}
}
});
// Fiscal Comparison Chart
const fiscalCtx = document.getElementById('fiscalComparisonChart').getContext('2d');
new Chart(fiscalCtx, {
type: 'line',
data: {
labels: ['Year 1', 'Year 2', 'Year 3', 'Year 4', 'Year 5', 'Year 6', 'Year 7', 'Year 8', 'Year 9', 'Year 10'],
datasets: [{
label: 'Deportation Costs (Cumulative)',
data: [-8, -16, -24, -30, -35, -35, -35, -35, -35, -35],
borderColor: '#e74c3c',
backgroundColor: 'rgba(231, 76, 60, 0.1)',
fill: true,
tension: 0.4
}, {
label: 'Regularisation Benefits (Cumulative)',
data: [5.6, 11.2, 16.8, 22.4, 28, 33.6, 39.2, 44.8, 50.4, 56],
borderColor: '#27ae60',
backgroundColor: 'rgba(39, 174, 96, 0.1)',
fill: true,
tension: 0.4
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
ticks: {
callback: function(value) {
return '£' + Math.abs(value) + 'bn';
}
}
}
},
plugins: {
legend: {
position: 'top'
},
tooltip: {
callbacks: {
label: function(context) {
const value = Math.abs(context.parsed.y);
const type = context.parsed.y < 0 ? 'Cost' : 'Benefit';
return context.dataset.label + ': £' + value + 'bn (' + type + ')';
}
}
}
}
}
});
// Calculator functionality
function updateCalculator() {
const population = parseInt(document.getElementById('populationInput').value);
const costPer = parseInt(document.getElementById('costInput').value);
const percentage = parseInt(document.getElementById('percentageInput').value);
const totalPeople = Math.round(population * (percentage / 100));
const totalCost = totalPeople * costPer;
const costInBillions = (totalCost / 1000000000).toFixed(1);
document.getElementById('calculatorResult').innerHTML =
`Total Cost: £${costInBillions} billion
(${totalPeople.toLocaleString()} people × £${costPer.toLocaleString()})
`;
}
// Add event listeners
document.getElementById('populationInput').addEventListener('input', updateCalculator);
document.getElementById('costInput').addEventListener('input', updateCalculator);
document.getElementById('percentageInput').addEventListener('input', updateCalculator);
// Initialize calculator
updateCalculator();
Add comment
Comments