A new model for the length of stay of hospital patients