It is necessary for the formulas to calculate the payment schedule, having the first payment date and the periodicity indicated in months, and then the script in the calendar to create all the events with payments and include a reminder on the mail and in the calendar app.