Go library containing a collection of financial functions for time value of money (annuities), cash flow, interest rate conversions, bonds and depreciation calculations.
- NetPresentValue
- InternalRateOfReturn
- ModifiedInternalRateOfReturn
- ScheduledNetPresentValue
- ScheduledInternalRateOfReturn
Checkout the full docs.
Also check this excellent blog post Learning finance concepts using go-finance for some examples and a general intro.