I have a file that have this structure
Account_ID first_payment Last_payment Status
----------------------------------------------------
1 10/15/2021 NA Active
2 09/22/2021 11/22/2021 Canceled
. . . .
I am trying to create a payment record file based on this information, so if a customer is active it will create 1 payment monthly till the next valid current date, and if he is canceled then it will create 1 monthly payment until the cancel date.
So the final result for this file will be
Account_id payment
----------------------
1 10/15/2021
1 11/15/2021
1 12/15/2021
1 01/15/2022
2 09/15/2021
2 10/15/2021
2 11/15/2021
Thanks for the help
