ODDLYIELD Function (OpenOffice Calc)
Derive an odd-last-period yield in Apache OpenOffice using ODDLYIELD. Check clean versus accrued price, simple annualization and inverse pricing 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: =ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;2;0) returned 0.084404373681 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 ODDLYIELD returns
ODDLYIELD calculates the annual simple yield for the release’s odd-last-period pricing formula. It adds accrued coupon interest to the supplied clean price, compares that total with the maturity payment, and annualizes over the settlement-to-maturity year fraction. Release implementation.
Syntax and arguments
=ODDLYIELD(Settlement;Maturity;LastInterest;Rate;Price;Redemption;Frequency[;Basis])
- Settlement, Maturity, LastInterest: numeric dates with LastInterest strictly before Settlement, which is strictly before Maturity.
- Rate: nonnegative annual coupon rate.
- Price: positive clean price per 100 face value.
- 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 |
|---|---|---|
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;2;0) |
0.084404373681 |
0.084404373681 |
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;2;1) |
0.084311763478 |
0.084311763478 |
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;2;2) |
0.083729681702 |
0.083729681702 |
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;2;3) |
0.084214773129 |
0.084214773129 |
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;2;4) |
0.084404373681 |
0.084404373681 |
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;1;0) |
0.084404373681 |
0.084404373681 |
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;4;0) |
0.084404373681 |
0.084404373681 |
=ODDLYIELD(DATE(2024;10;1);DATE(2025;1;15);DATE(2024;7;1);.05;99;100;2) |
0.084404373681 |
0.084404373681 |
Practical worksheet
For last interest July 1, 2024, settlement October 1, 2024 and maturity January 15, 2025, a 5% coupon, clean price 99 and redemption 100 give approximately 0.084404373681 under basis 0.
Accrued interest is 1.25, so the settlement total is 100.25. The maturity amount is 100+100*.05*194/360. Divide the maturity amount by 100.25, subtract one, then divide by 104/360. Using the clean price 99 alone in that denominator would overstate the return.
Advanced interpretation and checks
This helper is the algebraic inverse of ODDLPRICE for the same dates, coupon, redemption and basis. Independently pricing at yield 0.06 gives approximately 99.694735692442; substituting that unrounded price in the inverse expression recovers 0.06.
Frequency cancels from the helper’s year-fraction formula, although it is still validated as 1, 2 or 4. The native rows confirm equal yields for those three frequencies with all other inputs fixed. This is a simple final-interval annualization, not a general effective annual compound return.
Boundaries and troubleshooting
The wrapper requires positive Price, nonnegative coupon rate, valid frequency and strict LastInterest<Settlement<Maturity. A positive redemption quote is sensible input even though its sign is not explicitly checked by this wrapper. Invalid cases were source-reviewed only.
Keep the clean-price convention and day-count basis consistent. Passing a dirty price and then letting the function add accrued interest again changes the denominator. ODDLYIELD is distinct from odd-first-period ODDFYIELD; the inspected 4.1.16 helper for that other registered name is unimplemented, and no successful result is inferred for it.
Related functions
Official evidence and checking scope
- Function-specific release implementation
- GetOddlyield 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.