wilsonfreitas / python-bizdays

Business days calculations and utilities
http://wilsonfreitas.github.io/python-bizdays/
MIT License
80 stars 34 forks source link

bizdays doesn't handle correctly non-business days in edges #47

Closed wilsonfreitas closed 9 months ago

wilsonfreitas commented 9 months ago

bizdays doesn't handle correctly non-business days in edges.

The following call

bizdays("2013-01-01", "2014-01-01")

has two non-business days as arguments. In this situation, the index counts one more bizday, which is incorrect.

The example below must return 0 since the arguments represent two consecutive dates non-business days.

bizdays("2013-06-22", "2013-06-23")

This specific case has to be handled separately but is similar to the first example.