Module: Formulas
- Defined in:
- lib/formulas/paye.rb,
lib/formulas.rb,
lib/formulas/payg.rb,
lib/formulas/income.rb,
lib/formulas/salary.rb,
lib/formulas/expense.rb,
lib/formulas/household.rb,
lib/formulas/superannuation.rb,
lib/formulas/withholding_tax.rb,
lib/formulas/household/source.rb,
lib/formulas/student_loan_repayment.rb,
lib/formulas/loan_principal_calculator.rb,
lib/formulas/student_loan_repayment/repayment_base.rb,
lib/formulas/student_loan_repayment/fix_repayment_per_period.rb,
lib/formulas/student_loan_repayment/percent_repayment_per_threshold.rb
Overview
loan = Formulas::StudentLoanRepayment::FixRepaymentPerPeriod.new(salary: @salary, repayment: @repayment_rates) assert_equal loan.repayment, 797.2
Defined Under Namespace
Modules: Expense, FrequencyConversions, Income, StudentLoanRepayment Classes: HouseHold, LoanPrincipalCalculator, PAYE, PAYG, Salary, Superannuation, WithholdingTax
Constant Summary collapse
- MULTIPLIER_IN_FREQUENCY =
{ weekly: 52, fortnightly: 26, four_weeks: 13, monthly: 12 }
- ANNUALLY =
:annually- WEEKLY =
:weekly- FORTNIGHTLY =
:fortnightly- MONTHLY =
:monthly- FREQUENCIES =
[ANNUALLY, WEEKLY, FORTNIGHTLY, MONTHLY]