The Occupational Safety and Health Administration (OSHA) requires most employers to keep a record of serious workplace injuries and illnesses. The OSHA Recordable Incident Rate (or Incidence Rate) is a key metric used to gauge the safety performance of an organization. It helps compare safety performance over time or against industry benchmarks.
The formula for the OSHA Recordable Incident Rate is:
Rate = (Number of Recordable Incidents * 200,000) / Total Hours Worked
The 200,000 in the formula represents the number of hours 100 employees working 40 hours per week for 50 weeks a year would work. This standardizes the rate to a common basis.
function calculateOshaRate() {
var recordableIncidentsInput = document.getElementById("recordableIncidents");
var totalHoursWorkedInput = document.getElementById("totalHoursWorked");
var resultDiv = document.getElementById("result");
var recordableIncidents = parseFloat(recordableIncidentsInput.value);
var totalHoursWorked = parseFloat(totalHoursWorkedInput.value);
resultDiv.innerHTML = ""; // Clear previous results
if (isNaN(recordableIncidents) || isNaN(totalHoursWorked)) {
resultDiv.innerHTML = "Please enter valid numbers for all fields.";
return;
}
if (recordableIncidents < 0 || totalHoursWorked < 0) {
resultDiv.innerHTML = "Input values cannot be negative.";
return;
}
if (totalHoursWorked === 0) {
resultDiv.innerHTML = "Total hours worked cannot be zero.";
return;
}
var rate = (recordableIncidents * 200000) / totalHoursWorked;
resultDiv.innerHTML = "OSHA Recordable Incident Rate: " + rate.toFixed(2);
}