Implement partial extensions
When a contract expires, $addExtension can be used to add an extension (with any tariff, and other parameters). However, the use of the reserve as initial Capital of the extension is not properly implemented.
If the extension has a sumInsured (or a premiujm) and an initial Capital given, this should indicate a partial extension with the rest of the reserve paid out as benefit. This case also needs to be properly reflected in the CF dataframes of the blocks and of the main contract.
In particular, the survival-time row of the original contract should probably be modified? Or should the initial capital of the extension rather be reported as a (negative) survival benefit at the beginning of the extension? In the latter case, the overall contract would properly cancel out the carry-over from the original contract to the extension...
-
Decide on correct approach methodically -
Decide on the proper API (parameters of addExtension) -
Implement approach -
Documentation