what is the periodic formula of an annuity​