calculate the policy period and number of payments