Example

Disbursement Date Interest Due Date
02/01/2019 31/01/2019
15/01/2019 31/01/2019
16/01/2019 28/02/2019
17/01/2019 28/02/2019
28/01/2019 28/02/2019

01/01/2019 - 15/01/2019 - Interest Due should be end of the month
16/01/2019 - 31/01/2019 - Interest Due should be end of next month

how i want to formula my Interest Due Date?