Skip to Content
Menu

Commercial Days Calculator (360-day Year Method)

by
Odoo

20.89

v 16.0 Third Party
Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Invoicing (account)
Discuss (mail)
Lines of code 162
Technical Name strx_commercial_days_360
LicenseOPL-1
Websitehttps://start.initium.cloud
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Invoicing (account)
Discuss (mail)
Lines of code 162
Technical Name strx_commercial_days_360
LicenseOPL-1
Websitehttps://start.initium.cloud

Financial Calendar: 360-Day Year Calculator (DAYS360)

Accurate commercial day calculations for financial operations

Implement Excel's DAYS360 function in Odoo to calculate days between dates using the 30/360 day count convention, essential for:

  • Interest calculations
  • Loan amortizations
  • Bond calculations
  • Payment periods
  • HR working days calculations
  • Consumption trend analysis
  • 360-day based projections and forecasting

Module Highlights:
✓ Accurate implementation of both US and European methods
✓ Easy integration with other Odoo modules
✓ Wizard interface for quick calculations
✓ Company-level default method configuration
✓ Compatible with Odoo 14.0, 15.0, 16.0

Example Use

Key Features

Complete Implementation of DAYS360

Accurately calculates the number of days between two dates based on a 360-day year (twelve 30-day months), just like the DAYS360 function in Excel.

Two Calculation Methods

Supports both US (NASD) and European calculation methods, allowing you to choose the convention that matches your accounting standards.

Flexible Implementation

Multiple Ways to Access

The module provides several ways to access the calculation functionality:

# Recommended approach: Through the company model
days = self.env.company.days360('2025-01-01', '2025-12-31')

# or with your model, as account.move.line or sale.order
days = self.env["model"].company_id.days360('2025-01-01', '2025-12-31')

# Advanced usage: Through the dedicated model
days = self.env['days360.function'].calculate_days360(
    '2025-01-01', '2025-12-31', 'US')

Applications Beyond Finance: While commonly used in financial calculations, the 360-day year convention is also valuable for:

  • Human Resources: Calculate working days between dates for leave management, attendance tracking, and payroll.
  • Analytics: Analyze consumption trends with standardized monthly periods (30 days each) for more consistent comparisons.
  • Forecasting: Create projections and models based on the 360-day calendar for simplified business planning.

Calculation Methods Explained

US Method (NASD)

  • If the start date is the last day of the month, it becomes day 30
  • If the end date is the last day of the month and the start date is before day 30, the end date becomes day 30

European Method

  • If any date is the 31st, it becomes the 30th

Expected Results

The calculation results will differ between methods. Below is a table showing the expected results when calculating from different start dates to December 31, 2024:

Expected Results Table

As shown in the table, the US method consistently returns one more day than the European method for the same date range. These results can be verified using Microsoft Excel's DAYS360 function.

Easy to Use

Calculation Wizard

User-Friendly Interface

The module includes a simple wizard interface for performing calculations directly from the Odoo interface. Just enter the start and end dates, select the calculation method, and instantly see the results.

Technical Information

Formula

The module implements the DAYS360 function using the formula:

(Y2 - Y1) × 360 + (M2 - M1) × 30 + (D2 - D1)

Where:

  • Y1, M1, D1 are the year, month, and day of the start date
  • Y2, M2, D2 are the year, month, and day of the end date

The day values are adjusted according to the selected method.

Dependencies

  • Base Odoo modules (base, account)
  • No external Python libraries required

Compatibility

  • Odoo Community
  • Odoo Enterprise

Installation and Configuration

Installation

  1. Download the module from Apps.Odoo marketplace
  2. Install the module from the Odoo Apps menu

Note: This module is exclusively available through the official Odoo Apps marketplace.

Configuration

  1. Navigate to Settings → Companies
  2. Select your company
  3. Go to the "Commercial Days Settings" tab
  4. Choose between US Method (NASD) or European Method
Configuration Screenshot

Support

Need help or have questions?

Contact our support team:

hi@initium.cloud

About Us

Initium IT Services SAS

Related Search Terms

Days360 calculator, commercial days computation, 30/360 day count convention, Excel DAYS360 in Odoo, financial date calculation, interest period calculation, bond interest periods, payment interval calculation, US method NASD, European method 30/360, financial year 360 days, accounting periods calculator, commercial calendar implementation, corporate finance tools, HR working days calculator, human resources calendar, consumption trend analysis, standardized monthly calculation, 360-day projections, business forecasting, Odoo financial extensions, finance module Odoo, business intelligence tools

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.