in principle you are dealing with compund interest (or inflation, if you like)
ie a sum now, compunds into a larger sum after a period, depending on the interest rate
an annuity is similar but takes a series of periodic payments, each compunded ( eg an endowment)
eg
you can calculate how much you need to invest monthly at an assumed interest rate, to provide a sum of a certain amount at a point in the future ...
or you can calculate the present value of a future lump sum (or series of payments) allowing for inflation. ie the equivalent of getting £500/month for 10 years (£6000 altogether) is less, if you were getting it all in one go, now