Resource Utilisation Rate Calculator
The Resource Utilisation Rate is a key performance indicator (KPI) used to measure how effectively a company is using its available resources. It helps in understanding the efficiency of operations, identifying potential bottlenecks, and making informed decisions about resource allocation. A high utilisation rate generally indicates that resources are being used efficiently, while a low rate might suggest underutilization or opportunities for improvement.
function calculateUtilisationRate() {
var totalCapacity = parseFloat(document.getElementById("totalCapacity").value);
var utilizedCapacity = parseFloat(document.getElementById("utilizedCapacity").value);
var resultDiv = document.getElementById("result");
var resultPercentageDiv = document.getElementById("result-percentage");
resultDiv.innerHTML = "";
resultPercentageDiv.innerHTML = "";
if (isNaN(totalCapacity) || isNaN(utilizedCapacity)) {
resultDiv.innerHTML = "Please enter valid numbers for both fields.";
return;
}
if (totalCapacity <= 0) {
resultDiv.innerHTML = "Total available capacity must be greater than zero.";
return;
}
if (utilizedCapacity totalCapacity) {
resultDiv.innerHTML = "Capacity utilised cannot be greater than total available capacity.";
return;
}
var utilisationRate = (utilizedCapacity / totalCapacity) * 100;
resultDiv.innerHTML = utilisedCapacity + " / " + totalCapacity;
resultPercentageDiv.innerHTML = "Which is approximately " + utilisationRate.toFixed(2) + "%";
}
.calculator-wrapper {
font-family: sans-serif;
border: 1px solid #ddd;
padding: 20px;
border-radius: 8px;
max-width: 500px;
margin: 20px auto;
background-color: #f9f9f9;
}
.calculator-inputs, .calculator-results {
margin-bottom: 20px;
}
.input-group {
margin-bottom: 15px;
}
.input-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #333;
}
.input-group input[type="number"] {
width: calc(100% – 20px);
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.calculator-wrapper button {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
.calculator-wrapper button:hover {
background-color: #45a049;
}
.calculator-results h3 {
margin-top: 0;
color: #555;
}
#result {
font-size: 24px;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
#result-percentage {
font-size: 18px;
color: #666;
}