Class: InterestDays::Calculation::IsdaAct360

Inherits:
Base
  • Object
show all
Defined in:
lib/interest_days/calculation/isda_act_360.rb

Overview

ISDA Act 360 Convention calculation

Constant Summary collapse

RELEVANT_DAYS_IN_YEAR =
360

Instance Attribute Summary

Attributes inherited from Base

#end_date, #start_date

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from InterestDays::Calculation::Base

Instance Method Details

#day_count_factorObject



9
10
11
# File 'lib/interest_days/calculation/isda_act_360.rb', line 9

def day_count_factor
  days.fdiv(RELEVANT_DAYS_IN_YEAR)
end