Clueless-Community / fintech-api

An API that helps you to deal with your financial calculations
MIT License
93 stars 105 forks source link

endpoint to calculate future value of annuity due #106

Closed ShamanthVallem closed 1 year ago

ShamanthVallem commented 1 year ago

The Future Value of Annuity Due due is the value of consolidated payments at a date in the future, considering a fixed return or discount rate.

FVA Due = P {(1 + r) n - 1) (1 + r) / r}

P denotes Periodic Payment n denotes the Number of Periods r denotes the Effective interest rate

nikhil25803 commented 1 year ago

Go ahead :))

ShamanthVallem commented 1 year ago

@nikhil25803 Along with FVA due endpoint it would be great to add future value of ordinary annuity endpoint

fva ordinary: payments made are assumed to be at the end of the year fva annuity: payments made are assumed to be at the beginning of the year formula: P * [(1 + i)n – 1] / I

I would like to add this

nikhil25803 commented 1 year ago

Sure @ShamanthVallem, go ahead :))