Quantification of safe driving