how to you determine the number of payments made