DAYS360 Function (Gnumeric)
Learn the DAYS360 function in Gnumeric: Calculates the number of days between two dates based on a 360-day year.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =DAYS360(start_date,end_date,method) calculates the day count using a hypothetical 360-day year of twelve 30-day months rather than ordinary calendar-day subtraction. method is optional and defaults to 0 (US/NASD convention); method 1 selects the European convention; Gnumeric also documents a method 2 variant for symmetric February treatment. For dates January 15 through April 15, =DAYS360(DATE(2024,1,15),DATE(2024,4,15)) has the expected result 90. Gnumeric official Date/Time manual — DAYS360, accessed 2026-10-11.
Availability and version history
- Introduced: Documented by 1.12.62; original introduction not established.
- Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-date function module must be included and enabled.
- Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
What DAYS360 is for — and what it is not
Some financial agreements calculate accruals using 30/360 day-count rules. This makes each month 30 units long for the calculation, even when the real month has 28, 29, or 31 days. DAYS360 implements such a conventional count. It is not a substitute for DAYS, which counts actual calendar days, or for NETWORKDAYS, which counts working days under configured schedules. The precise convention matters for financial agreements; obtain the contract’s definition instead of silently assuming US, European, or Gnumeric’s additional variant.
Exact Gnumeric syntax, default, and argument types
=DAYS360(start_date,end_date,method)
start_date — Required. Numeric date serial, date-valued cell or DATE(year,month,day) expression for the beginning.
end_date — Required. Numeric serial or date expression for the end.
method — No. Counting rule: 0 US/NASD default, 1 European, 2 Gnumeric’s documented symmetric-February alternative.
Do not reverse the first two arguments. DAYS360 takes start first, unlike DAYS(end_date,start_date). The official manual lists 0/1/2 and specifies that method 0 adjusts the last day of February specially for the start date, while method 2 treats February month ends symmetrically. The manual describes the function generally as Excel-compatible; that does not mean the additional 2 option is portable to Excel. Official Gnumeric Date/Time manual — DAYS360, accessed 2026-10-11.
Create a small Gnumeric worksheet
Use DATE() formulas to avoid confusing 1/2/24 under different date locales:
On a narrow screen, scroll this table sideways to see every column.
| Cell | Formula to enter | Expected value |
|---|---|---|
A2 |
=DATE(2024,1,15) |
January 15, 2024 |
B2 |
=DATE(2024,4,15) |
April 15, 2024 |
C2 |
=DAYS360(A2,B2) |
90 (default method 0) |
D2 |
=DAYS360(A2,B2,1) |
90 (European) |
E2 |
=DAYS(B2,A2) |
91 actual calendar days in leap year 2024 |
For C2 and D2, the 30/360 calculation is 30 × (4 − 1) + (15 − 15) = 90. The actual-day comparison E2 is 91 (January 15 to April 15, 2024). These numbers were calculated independently; they are not native application observations. Format calculation outputs as Number/General to show the count.
Understanding Gnumeric’s three methods
Method 0 — US/NASD-style default. This follows the conventional 30/360 family, including special handling of February month-end on the start side as described by the Gnumeric manual. Avoid treating it as simple Gregorian subtraction. For contracts with specific last-day-of-February clauses, test edge dates against the contractual examples before use.
Method 1 — European. A date on the 31st is regarded as the 30th for the calculation. The simple difference follows 360 × (end year − start year) + 30 × (end month − start month) + adjusted end day − adjusted start day with 31→30 in this method. For January 31 through March 31, 2023, the expected 30/360 count is 60 even though the actual calendar difference is 59.
Method 2 — Gnumeric alternative. The official manual describes this as a version of the US counting rule that gives both dates the same last-day-of-February adjustment. It is an important Gnumeric-specific option; the official manual does not claim it is a cross-application method code. Verify last-February-day cases in the target installation before using method 2 for contractual calculations. Official Date/Time manual, accessed 2026-10-11.
Reproducible calculation table
On a narrow screen, scroll this table sideways to see every column.
| Formula | Method | Expected result | Independent reasoning |
|---|---|---|---|
=DAYS360(DATE(2024,1,15),DATE(2024,4,15)) |
default 0 |
90 |
Three 30-day months. |
=DAYS360(DATE(2024,1,15),DATE(2024,4,15),1) |
1 |
90 |
Same middle-of-month endpoints. |
=DAYS360(DATE(2023,1,31),DATE(2023,3,31),1) |
1 |
60 |
Both 31sts become the 30th. |
=DAYS360(DATE(2024,2,15),DATE(2024,3,15),0) |
0 |
30 |
A matching day across one 30-day month. |
=DAYS360(DATE(2024,1,15),DATE(2024,4,15),2) |
2 |
90 |
No February end-day adjustment needed. |
The expected outcomes above deliberately avoid ambiguous end-of-February test cases that would require verifying the exact implementation branch. The application itself has not been run. Your finance/accounting workflow should native-test the relevant month-end and reversal cases before using any convention as a source of record.
Worked finance case: simple 30/360 interest accrual
Suppose a hypothetical agreement explicitly says “US 30/360” and calculates simple interest on a principal of 1,000 currency units at an annual rate of 6% between January 15 and April 15, 2024. Enter:
=1000*0.06*DAYS360(DATE(2024,1,15),DATE(2024,4,15),0)/360
The expected result is 15 currency units: 1000 × 0.06 × 90 / 360 = 15. The model assumes no compounding, no irregular coupon, no mid-period balance changes, and a matching contract day-count convention. It is an instructional example, not a general claim about lending regulations or contract obligations.
Dynamic, audited input pattern
Enter a date in each of A2 (start) and B2 (end), principal in C2, annual decimal rate in D2 (e.g. 0.06), and method in E2 (0 or 1). Formula =C2*D2*DAYS360(A2,B2,E2)/360 makes each choice auditable. Keep the convention code visible rather than hiding it in a long formula; verify which interpretation the agreement actually requires.
Troubleshooting, boundaries, and compatibility
- Why does this differ from
DAYS?DAYS360is convention-based, not an actual-day count. A 30-day hypothetical month is not every actual calendar month. - Why do February or the 31st produce unexpected results? The selected method includes endpoint adjustments. Check whether the workbook requires 30U/360, 30E/360, or a more precise finance-standard variant. Do not assume identical names imply identical conventions.
- Why does method
2not transfer cleanly? It is documented as an option in Gnumeric but not as a general Excel-compatible cross-platform code. Use method 0 or 1 only where the imported workbook/contract specifies that rule, and separately verify results. - Why is my formula apparently returning a date? Apply Number/General formatting to the output cell.
- Why is a typed date misread? Locale can change the interpretation of slash-separated date text. Enter
DATE(year,month,day)instead. Gnumeric date/time locale guidance, accessed 2026-10-11. - What about blank/non-date/error inputs or invalid method values? Gnumeric’s linked manual establishes the documented methods but does not establish all runtime coercions or exact error messages in this review; label those native-testing pending, not a guessed error code.
- What about early-1900 dates or a 1904-based workbook? Date serials can depend on the workbook system. Gnumeric documents Excel’s historical 1900 leap-year exception; reconcile source workbook date systems before using low serials. Gnumeric manual — DATE.
Supported software and validation scope
Gnumeric’s public function catalogue lists days360 as Complete with Basic tests; these labels are catalogue status, not native execution within this tutorial review. The official manual says Excel compatible, but it documents the additional Gnumeric counting method 2. Modern Microsoft Excel and LibreOffice Calc also support named DAYS360 calculations, yet supported method codes, argument separators and February edge cases must be verified individually before cross-software equivalence claims. Gnumeric catalogue and Date/Time manual, accessed 2026-10-11.
As of the review, GNOME’s official 1.12 release listing identifies 1.12.62 as latest; runtime/platform/build and plugin activation remain unverified here. GNOME 1.12 index, accessed 2026-10-11.
Related Gnumeric function guides
Sources and verification record
On a narrow screen, scroll this table sideways to see every column.
| Claim | Evidence and validation class | Status |
|---|---|---|
Argument order, optional method, US default 0, European 1, Gnumeric-specific 2 |
Official Gnumeric Date/Time manual — DAYS360 | Documentation checked, 2026-10-11 |
| Gnumeric function implementation and testsuite category | Official function catalogue — Date/Time | Documentation checked, 2026-10-11 |
| DATE serial construction and historical-system caveat | Official Gnumeric manual — DATE | Documentation checked, 2026-10-11 |
| Calendar-day comparison and six simple 30/360 computations | Standard-library Gregorian date subtraction plus transparent 30/360 arithmetic in the example-check record | Independent calculation, expected values only |
How this guide was checked
The syntax and behaviour are based on the Gnumeric references cited above. The sample calculations were independently checked; they are expected results, not outputs observed in Gnumeric. Test locale-sensitive text conversion and imported files in your own installation. View the example-check record.