Blended Labor Rate Calculator
This calculator helps you determine the blended labor rate for your team or project. A blended labor rate is an average hourly rate calculated by combining the different hourly rates of individuals working on a project or within a team. It's useful for budgeting, pricing, and understanding the overall cost of labor.
Calculate Blended Rate
Your Blended Labor Rate:
—
function calculateBlendedRate() {
var hoursWorked = parseFloat(document.getElementById("hoursWorked").value);
var totalLaborCost = parseFloat(document.getElementById("totalLaborCost").value);
var resultElement = document.getElementById("result");
resultElement.style.color = "black"; // Reset color
if (isNaN(hoursWorked) || isNaN(totalLaborCost)) {
resultElement.textContent = "Please enter valid numbers for all fields.";
resultElement.style.color = "red";
return;
}
if (hoursWorked <= 0) {
resultElement.textContent = "Total hours worked must be greater than zero.";
resultElement.style.color = "red";
return;
}
if (totalLaborCost < 0) {
resultElement.textContent = "Total labor cost cannot be negative.";
resultElement.style.color = "red";
return;
}
var blendedRate = totalLaborCost / hoursWorked;
resultElement.textContent = "$" + blendedRate.toFixed(2) + " per hour";
}
.blended-labor-rate-calculator {
font-family: sans-serif;
border: 1px solid #ccc;
padding: 20px;
border-radius: 8px;
max-width: 500px;
margin: 20px auto;
background-color: #f9f9f9;
}
.blended-labor-rate-calculator h2, .blended-labor-rate-calculator h3 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
.blended-labor-rate-calculator p {
margin-bottom: 20px;
line-height: 1.6;
color: #555;
}
.input-section {
display: flex;
flex-direction: column;
gap: 15px;
margin-bottom: 20px;
}
.form-field {
display: flex;
justify-content: space-between;
align-items: center;
}
.form-field label {
font-weight: bold;
color: #444;
}
.form-field input[type="number"] {
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
width: 120px;
text-align: right;
}
.blended-labor-rate-calculator button {
display: block;
width: 100%;
padding: 10px 15px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
margin-bottom: 20px;
}
.blended-labor-rate-calculator button:hover {
background-color: #0056b3;
}
.result-section {
text-align: center;
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #eee;
}
#result {
font-size: 24px;
font-weight: bold;
color: #007bff;
}