We’re improving Formula Genius. We’re redesigning the app and fixing issues along the way. Sorry for any disruption, and thank you for your patience.
Excel advanced

How to Calculate Year Fraction with 360-Day Calendar?

Understanding the fraction of a year between two dates is crucial in finance, and this formula simplifies that process using a 360-day calendar.

Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.

The formula

Prompt

"Calculate the fraction of a year between two dates using a 360-day calendar, common in finance"

Excel
=DAYS360(start_date, end_date, [method])

This formula calculates the fraction of a year between two dates based on a 360-day year convention.

Step-by-step breakdown

  1. Step 1: Input the start_date as the first date from which you want to calculate.
  2. Step 2: Input the end_date as the second date to which you want to calculate.
  3. Step 3: Optionally, specify the method (TRUE for US method, FALSE for European method).
  4. Step 4: The formula computes the difference in days and divides it by 360 to get the year fraction.

Edge cases & warnings

  • Using dates that fall on leap years may yield unexpected results.
  • Entering the same start and end date will return 0, indicating no time has passed.
  • If the start date is after the end date, the formula will return a negative fraction.
  • Using non-date values will result in an error.

Examples

Prompt

"Start Date: 01/01/2023, End Date: 01/01/2024"

Excel
1
Prompt

"Start Date: 01/01/2023, End Date: 07/01/2023"

Excel
0.5

Frequently asked questions

What is the difference between the US and European methods?

The US method assumes that February has 30 days, while the European method does not.

Can I use this formula for dates in different years?

Yes, the formula works across different years as long as the dates are valid.

What happens if I input invalid dates?

The formula will return an error if the dates are not in a valid date format.

Can't find what you need?

Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.