~/ learn/ afm-182/ cards/ The annuity factor is a sum; uneven flows are a sum you do by hand
1 of 5

Print the ordinary-annuity factors for 3, 4 and 5 years at 6, 8, 10 and 12 % by summing the single-sum factors, then the PV of 270,000 a year for 5 years at 10 % using the four-decimal factor.

Print the ordinary-annuity factors for 3, 4 and 5 years at 6, 8, 10 and 12 % by summing the single-sum factors, then the PV of 270,000 a year for 5 years at 10 % using the four-decimal factor.

Answer

def annuity_factor(rate, years): return round(sum(1 / (1 + rate) ** t for t in range(1, years + 1)), 4) rates = (0.06, 0.08, 0.10, 0.12) for years in (3, 4, 5): cells = ' '.join(f'{int(r * 100)}% {annuity_factor(r, years):.4f}' for r in rates) print(f'{years} years: {cells}') print(f'PV of 270,000 x 5 at 10%: {270_000 * annuity_factor(0.10, 5):,.0f}')

Bigel ch 11; Hermanson Vol 2 ch 26

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/76b90437-7e3f-4a2f-b14d-ac62a536e741/flashcard utf-8 LF