README.md in cash_flow_analysis-0.1.0 vs README.md in cash_flow_analysis-0.2.0

- old
+ new

@@ -1,7 +1,9 @@ # CashFlowAnalysis +[![Build Status](https://travis-ci.org/hightower/cash_flow_analysis.svg?branch=master)](https://travis-ci.org/hightower/cash_flow_analysis) + Ruby implementation of various financial analysis functions. ## Installation Add this line to your application's Gemfile: @@ -36,24 +38,9 @@ Calculates the [payment for a loan](http://en.wikipedia.org/wiki/Mortgage_calculator), assuming fixed payments and rates. ``` CashFlowAnalysis::Calculator::Payment.calculate(10000, 60, 0.025) # 323.5339590005929 -``` - -### XIRR - -Calculates the [XIRR](http://en.wikipedia.org/wiki/Internal_rate_of_return), assuming irregularly timed cash flows. - -``` -items = [] -items << OpenStruct.new(date: Date.new(2008, 1, 1), amount: -10000) -items << OpenStruct.new(date: Date.new(2008, 3, 1), amount: 2750) -items << OpenStruct.new(date: Date.new(2008, 10, 30), amount: 4250) -items << OpenStruct.new(date: Date.new(2009, 2, 15), amount: 3250) -items << OpenStruct.new(date: Date.new(2009, 4, 1), amount: 2750) -CashFlowAnalysis::Calculator::Xirr.calculate(items) -# 0.373362533517793504136316860945228... ``` ### XNPV Calculates the [XNPV](http://en.wikipedia.org/wiki/Net_present_value), assuming irregularly timed cash flows.