Calculation of the risk_actual

First part of the implementation. See note 3.