Time period detail is set in Defining, Deleting, and Displaying Time Periods.
Returns the number days in a period.
This formula calculates interest expense:
@pdlen/@yearlen * v2520 * 9%
Where Notes Payable (v2520) has a 9% annual rate. This takes the number of days in the period, divides by the number of days in the year, multiplies the debt balance, and multiplies by 9% to get to a periodic interest expense.