How are the last measurement and last most severe measurement calculated?