hello

let say you get a loan of 1,000 with bank rate of interest 5% for 10 years

an online calculator says that you will totally have paid at the end of the 10 year period 1272.79, each month 10,61 (the 272.79 are the total interest)

how are these calculated? I mean, what is the procedure?

at the same time there is inflation of x,y,z% etc each year (or for making it more easy, let's say standard inflation 3% each year)

I think that at the end, you will ofcourse have paid a total of 1272.79, but given the fact that inflation made the doses become more and more "cheaper", the total amount will "seem" less, do I make any mistake here?

if not, how can that less amount be calculated? any equation?

(for standard inflation or variable per year)

thanks