I want to make alerts/forcasts for my credit card payments and I'm trying to figure out how the closing dates for my statements work.
Here are the dates from my past several statements. The format is:
opening date - closing date: payment due date
28 aoû 2019 - 27 sep 2019: 23 oct 2019
27 jul 2019 - 27 aoû 2019: 23 sep 2019
28 jui 2019 - 26 jul 2019: 16 aoû 2019
29 mai 2019 - 27 jui 2019: 18 jul 2019
27 avr 2019 - 28 mai 2019: 18 jui 2019
28 mar 2019 - 26 avr 2019: 17 mai 2019
28 fév 2019 - 27 mar 2019: 17 avr 2019
29 jan 2019 - 27 fév 2019: 25 mar 2019
01 jan 2019 - 28 jan 2019: 18 fév 2019
The only thing I could understand is that the due date is always 3 full weeks after the closing date... except when it is not (25 march, 23 september and 23 october are the exceptions). I do realize that the date varies between 26 and 28, but it doesn't seem to depend on the length of the month...
What I would like is given a date which corresponds to the beginning of a statement period, calculate the end of the period, the payment due date, the beginning of the next period and so forth...
Any help is welcome.