pricing.in_force()
The amount in force on a date: the sum of the full-term amounts, as
Usage
pricing.in_force(
effective, expiration, amount, date, changes=None, cancellation=None
)they stand that day, of the policies effective on or before it and not yet expired or cancelled. A snapshot, with no regard to how long each policy runs.
Parameters
effective: list of datetime.date or strexpiration: list of datetime.date or stramount: list of floatdate: datetime.date or strchanges: list of (int, date, float) = Nonecancellation: list of (date or None) = None- As in earned_exposure.
Returns
float
Examples
>>> from prospicio.pricing import in_force
>>> in_force(["2011-07-01"], ["2012-07-01"], [400.0], "2012-01-01",
... changes=[(0, "2012-01-01", 800.0)])800.0