How negligence is determined in accidents