From 08810e5a39dd7b7fd950ddf09ce8927db134671d Mon Sep 17 00:00:00 2001 From: Ruben Espinosa Date: Mon, 4 Mar 2013 21:51:29 -0500 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 89558b0..7245e60 100644 --- a/README.md +++ b/README.md @@ -17,21 +17,22 @@ Or install it yourself as: $ gem install financial_maths ## Usage - ```ruby - require "financial_maths" - - include FinancialMaths - - calculate = Credit.new - ``` +```ruby +require "financial_maths" + +include FinancialMaths + +calculate = Credit.new +``` ### Calculate Fixed payment equity - A credit in a period of 15 years, the amount is $100.000.000 and the interest is 1.44594763%, - call the method following the next instruction. - - calculate.fixed_payment_equity(15,100000000,0.0144594763) +A credit in a period of 15 years, the amount is $100.000.000 and the interest is 1.44594763%, +call the method following the next instruction. - The result is a hash with the plan of payments, it looks like that +```ruby +calculate.fixed_payment_equity(15,100000000,0.0144594763) +``` +The result is a hash with the plan of payments, it looks like that [{:period=>0, :monthly_payment=>nil, :interest=>nil, :payment=>nil, :balance=>100000000}, {:period=>1, :payment=>2001502.63, :interest=>1445947.63, :monthly_payment=>555555, :balance=>99444445},