last_part(i, freq_id='ANV')[source]

Length of time till next anniversary in step i

When freq_id takes its default value ‘ANV’, last_part() returns and a Series indexed with model point ID that indicates for each model point the length of time in months until the next policy anniversary in step i. The decimal fraction of the length, if any, represents the proportion of the number of days befor anniversary in the anniversary months. The measured part corresponds to the remaining policy year the model point is in at date_(i). If no policy anniversary is in Step i, then months_in_step(i) is returned. If ‘PREM’ is given to freq_id, the lengh of time in months till the next payment date is returned.