Fix day of week issue. Add min limit to lateness detection