Esportazione automatica nelle uscite di un finanziamento

good morning, i wanted to know how can i insert an automatic mortgage expiry count into an app. I mean, I’m creating a home wallet type application. I have included repetitive monthly financing. how can I do to have the total of the outputs considering these financing automatically.