explosive cost

Explosive Consumption for Drilling Rock body { font-family: Arial, sans-serif; margin: 20px; } h1 { text-align: center; } .container { max-width: 600px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 10px; } .input-group { margin-bottom: 15px; } .input-group label { display: block; margin-bottom: 5px; } .input-group input { width: 100%; padding: 8px; box-sizing: border-box; } .result { text-align: center; margin-top: 20px; font-size: 1.2em; color: #333; } button { padding: 10px 20px; background-color: #007BFF; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #0056b3; }

Method to Calculate Explosive Consumption for Drilling Rock

Diameter (cm):
Depth (km):
Cost per kg of explosive:
Calculate
function calculateCost() { const diameter = document.getElementById(‘diameter’).value; const depth = document.getElementById(‘depth’).value; const costPerKg = document.getElementById(‘costPerKg’).value; if (!diameter || !depth || !costPerKg) { alert(‘Please fill out all fields.’); return; } const radius = diameter / 2 / 100; // Convert cm to meters and then divide by 2 to get radius const depthMeters = depth * 1000; // Convert km to meters const volume = Math.PI Math.pow(radius, 2) depthMeters; // Volume in cubic meters const explosiveConsumption = volume * 470; // Explosive consumption in kg const totalCost = explosiveConsumption * costPerKg; // Total cost document.getElementById(‘result’).innerText = `Total Cost: $${totalCost.toFixed(2)}`; }

Leave a comment