Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rderoldan1 committed Mar 5, 2013
1 parent a59eb54 commit 08810e5
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 08810e5

Please sign in to comment.