Helper Functions

Actual / 360

cred.actual360(dt1, dt2)

Returns the fraction of a year between dt1 and dt2 on an actual / 360 day count basis.

30 / 360

cred.thirty360(dt1, dt2)

Returns the fraction of a year between dt1 and dt2 on 30 / 360 day count basis.