updated sla breach function for dashboard