module Formulas::Expense
Public Instance Methods
monthly_credit_card(amount, monthly_interest_rate)
click to toggle source
Expense.monthly_credit_card
(10_000, 3)
> 300¶ ↑
# File lib/formulas/expense.rb, line 9 def monthly_credit_card(amount, monthly_interest_rate) amount * (monthly_interest_rate / 100) end