InterestThing Icon

Date interval methods

Overview

InterestThing can calculate time between dates in three distinct ways, resulting in:

Time methods scheme

Calculation methods

1. Year fraction

When calculating time between dates based on a year fraction, this fraction is calculated using the specified day count convention.

To learn more about day count conventions, see Day count convention taxonomy.

For a list of available day count conventions, see Day count convention reference.

Time between dates is defined solely by the calculated year fraction, regardless of its length.

2. Periods and days

When calculating with periods and days, the number of full periods is counted backwards from the end date. If there are any remaining odd days, the days fraction is calculated as a leading stub using the specified days fraction convention.

Depending on the length of the time interval, time between dates is either expressed as a days fraction only, a periods fraction, or a leading days fraction followed by a periods fraction.

3. Periods and days with reference dates

This section details how InterestThing solves the problem of implicit capitalization as discussed in Interest calculation fundamentals and Reference dates and capitalization.

The reference date that is set in Compute options is used to create a fixed grid of reference periods onto which the interval between start and end date is projected.

This produces zero or more full periods and/or odd days stubs: full periods are used to determine the periods fraction and the stubs are used to calculate the respective days fractions using the specified days fraction convention.

Interest is kept pending until it can be capitalized or compounded:

Depending on where the start and end dates fall relative to the reference periods grid, different combinations are possible:

How periods are aligned

The key difference between methods 2 and 3 is how the periods are aligned.

In method 2, the period grid floats — full periods are counted backwards from the end date, so the end date is always on a period boundary and any odd days form a single leading stub.

In method 3, the period grid is fixed by the reference date — start and end dates can fall anywhere relative to the grid, potentially creating both a leading and a trailing stub or just a floating stub.

This also means that in method 3, pending interest can accumulate across multiple events (floating or trailing stub carried forward, then capitalized together with the next leading stub and full periods), whereas in method 2 each interval is self-contained.

Selecting date interval methods in compute options

To use method 1 for all types of interest, set Date intervals to year fraction.

To use method 2 or 3, set Date intervals to periods and days. Then for Period anchors: