ODDLPRICE Function (OpenOffice Calc)
Price an odd last coupon period with Apache OpenOffice ODDLPRICE. Follow the release’s simple-discount formula, accrued interest and day-count examples.
Verification status: Eight ordinary reference formulas were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, through generated native ODF and GUI hard recalculation. Saved identities, inputs and results were checked. How formula examples are checked
Quick answer: =ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;2;0) returned 99.694735692442 in the tested Apache OpenOffice 4.1.16 build.
Availability and version history
- Introduced: First release not established; documented by OpenOffice.org 3.3.
- Supported in: Apache OpenOffice 4.1.16; this is a verified release, not a final supported version.
- Scope: Desktop Calc, English function names and semicolon-separated formulas.
- Checked: October 14, 2026. Eight ordinary reference formulas were recalculated from generated ODF in 4.1.16 on Linux x86-64, Build 9816. Source and independent arithmetic were checked.
What ODDLPRICE returns
ODDLPRICE calculates a clean price per 100 face value for the final irregular coupon interval, using the specified last coupon date. In this release its helper prorates the final coupon by a year fraction and applies simple discounting from settlement to maturity. Release implementation.
Syntax and arguments
=ODDLPRICE(Settlement;Maturity;LastInterest;Rate;Yield;Redemption;Frequency[;Basis])
- Settlement, Maturity, LastInterest: numeric dates with LastInterest strictly before Settlement, which is strictly before Maturity.
- Rate: nonnegative annual coupon rate.
- Yield: nonnegative annual discount yield as a decimal.
- Redemption: maturity payment per 100 face value; use a positive quote.
- Frequency: 1, 2 or 4 payments per year.
- Basis: optional 0 US 30/360; 1 actual/actual; 2 actual/360; 3 actual/365; 4 European 30/360.
Eight reproducible examples
The native column contains saved 4.1.16 results; independent references use high-precision arithmetic and the stated source rules. Values are shown to twelve decimal places where needed. Enter DATE expressions directly rather than locale-dependent date text.
| Formula | Native 4.1.16 result | Independent reference |
|---|---|---|
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;2;0) |
99.694735692442 |
99.694735692442 |
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;2;1) |
99.693862276767 |
99.693862276767 |
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;2;2) |
99.688484914656 |
99.688484914656 |
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;2;3) |
99.692978935626 |
99.692978935626 |
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;2;4) |
99.694735692442 |
99.694735692442 |
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;1;0) |
99.694735692442 |
99.694735692442 |
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;4;0) |
99.694735692442 |
99.694735692442 |
=ODDLPRICE(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;.06;100;2) |
99.694735692442 |
99.694735692442 |
Practical worksheet
For last interest July 1, 2024, settlement October 1, 2024 and maturity January 15, 2025, basis 0 gives last-to-maturity fraction 194/360, settlement-to-maturity 104/360 and accrued fraction 90/360. At coupon 5%, yield 6% and redemption 100, the price is approximately 99.694735692442.
The maturity amount is 100+100*.05*194/360; discount it by 1+.06*104/360, then subtract accrued interest 100*.05*90/360. Do not apply a regular half-year power instead: that would be a different formula.
Advanced interpretation and checks
The source multiplies each year fraction by Frequency, then divides it by Frequency again in the price expression. Consequently, frequency cancels algebraically in this helper. The tested frequencies 1, 2 and 4 give the same price when every other argument stays fixed.
This does not mean coupon frequency is irrelevant to all bond calculations. It is an implementation-specific property of ODDLPRICE’s final-interval formula. Its inverse ODDLYIELD can be used with the same dates and basis to recover the supplied yield; a different basis changes the fractional periods and the answer.
Boundaries and troubleshooting
The wrapper requires LastInterest<Settlement<Maturity, a nonnegative coupon rate and yield, and frequency 1, 2 or 4. These checks were inspected; invalid arguments were not executed. Use a positive redemption quote even though that wrapper does not explicitly check its sign.
ODDLPRICE concerns an odd last period. It is not a working substitute for every odd first coupon scenario. The separately registered ODDFPRICE helper in the inspected 4.1.16 source is unimplemented; no successful execution of that different function is claimed here. Verify the actual payment schedule and pricing convention before applying a quoted value.
Related functions
Official evidence and checking scope
- Function-specific release implementation
- GetOddlprice calculation
- GetYearFrac calculation
- GetDiffParam calculation
- Separate odd-first helper limitation
The generated ODF produced the informational load warning “Not all attributes could be read.” The sheet was hard-recalculated and saved separately. All eight ordinary function identities, inputs and results were reconciled; a stale SUM cache changed from 999999 to 3 and an uncached SUM returned 7. This establishes the stated examples, not every workbook style or invalid input. Other explanatory identities are independent calculations. The authoring-tool XLSX was not executed in OpenOffice, and its preview values are not the native results reported here.