Note:
aprshould be as decimal (ex. 6.99% would be0.0699)- For map arguments:
%{:at_month => [ex. 12], :amount => [ex. 300]}:at_monthis the number of months from now that you would like to apply the additional payment. So:at_month => 6would be six months from now.:amountis the amount that you would like to increase your payment by. So if yourpaymentis100and:amount => 400, yourpaymentwill increase to500at the specified month.
.balance_over_months/3
- Args:
(beginning_balance, apr, months) - Calculates what balance will be over x months.
.balance_over_months_with_payment/4
- Args:
(beginning_balance, apr, months, payment) - Calculates what balance will be over x months with consistent payment.
.months_to_payoff/3
- Args:
(balance, apr, payment) - Calculates how many months it will take to payoff with consistent payment.
.months_to_payoff_w_bump/4
- Args:
(beginning_balance, apr, payment, %{:at_month => [ex. 12], :amount => [ex. 300]}) - Same as
months_to_payoff/3but allows you to bump the payment at a specified month for the remainder of the payments. Ex. Months 1 - 6, payment is 100, months 7 onward, payment is 500.