Skip to content

days360

Number of days between two dates using a 360-day year (30-day months).

v = days360(start_date, end_date, method)

Returns the number of days between two dates using the 30/360 convention common in accounting and bond yield calculations. method = false (default) uses US/NASD method; true uses European method.

days360(date(2026,1,1), date(2026,12,31)) % 359
  • days — Number of days between two dates.
  • yearfrac — Fraction of a year between two dates.