Understanding Accident Frequency Rate
The Accident Frequency Rate (AFR) is a vital tool for assessing workplace safety. It quantifies how often injuries or illnesses requiring medical attention beyond first aid occur relative to the total work hours performed by employees. By tracking this rate, companies can:
- Benchmark performance: Compare their safety record against industry averages.
- Identify trends: Spot increases or decreases in accident rates over time, indicating whether safety initiatives are effective or if new hazards have emerged.
- Prioritize safety efforts: Focus resources on areas with higher accident frequencies.
- Meet regulatory requirements: Many safety regulations require the tracking and reporting of such metrics.
A lower AFR is always the goal, signifying a more secure and controlled work environment. Regular calculation and analysis of AFR are fundamental to a proactive safety management system.
function calculateAFR() {
var recordableAccidents = parseFloat(document.getElementById("recordableAccidents").value);
var totalHoursWorked = parseFloat(document.getElementById("totalHoursWorked").value);
var resultDiv = document.getElementById("result");
if (isNaN(recordableAccidents) || isNaN(totalHoursWorked) || recordableAccidents < 0 || totalHoursWorked <= 0) {
resultDiv.innerHTML = "Please enter valid positive numbers for accidents and total hours worked.";
return;
}
var accidentFrequencyRate = (recordableAccidents / totalHoursWorked) * 200000;
resultDiv.innerHTML = "
Accident Frequency Rate (AFR)
" +
"Number of Recordable Accidents: " + recordableAccidents + "" +
"Total Hours Worked: " + totalHoursWorked.toLocaleString() + "" +
"
Your Accident Frequency Rate is: " + accidentFrequencyRate.toFixed(2) + "";
}
.calculator-wrapper {
font-family: sans-serif;
max-width: 900px;
margin: 20px auto;
border: 1px solid #ccc;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-wrap: wrap;
}
.calculator-form {
flex: 1;
padding: 30px;
background-color: #f9f9f9;
box-sizing: border-box;
}
.calculator-explanation {
flex: 1;
padding: 30px;
background-color: #e9ecef;
box-sizing: border-box;
}
.calculator-form h2,
.calculator-explanation h3 {
color: #333;
margin-top: 0;
}
.form-field {
margin-bottom: 20px;
}
.form-field label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #555;
}
.form-field input[type="number"] {
width: calc(100% – 20px);
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1rem;
}
.calculator-form button {
background-color: #007bff;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1.1rem;
transition: background-color 0.3s ease;
}
.calculator-form button:hover {
background-color: #0056b3;
}
.calculator-result {
margin-top: 25px;
padding: 15px;
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
border-radius: 4px;
text-align: center;
}
.calculator-result h2 {
color: #155724;
margin-top: 0;
}
.calculator-explanation ul {
padding-left: 20px;
}
.calculator-explanation li {
margin-bottom: 10px;
line-height: 1.6;
}
@media (max-width: 768px) {
.calculator-wrapper {
flex-direction: column;
}
.calculator-form,
.calculator-explanation {
width: 100%;
flex: none;
}
}