(18)The calculation of the risk margin should be based on the assumption that the whole portfolio of insurance and reinsurance obligations is transferred to another insurance or reinsurance undertaking. In particular, the calculation should take the diversification of the whole portfolio into account.