Known deviations from Excel behavior
masterWhile the primary goal is to match Excel's behavior exactly, there are two specific areas where this library deviates to correct Excel's logic:
- CoupDays: The library ensures that
coupDays = coupDaysBS + coupDaysNC. Excel's implementation can differ by +/- one or two days when a date spans a leap year. - VDB (Variable Depreciation): In Excel, the depreciation in period (0,1) is not equal to the sum of depreciations in sub-periods (0,0.5) and (0.5,1). This library aims for mathematical consistency where the sum of sub-periods equals the total period depreciation.