Class: Bankroll::FutureValue

Inherits:
Object
  • Object
show all
Extended by:
Callable, Dry::Initializer
Defined in:
lib/bankroll/future_value.rb

Instance Method Summary collapse

Instance Method Details

#callObject



16
17
18
19
# File 'lib/bankroll/future_value.rb', line 16

def call
  (effective_rate * present_value) +
    (@payment * (1 + (@interest_rate * 0)) * (effective_rate - 1) / @interest_rate)
end