Created attachment 34505 [details] Patch for WorkdayCalculator The excel function NETWORKDAYS can be used with two equal input dates, e.g. 2017-01-01, 2017-01-01. In this case, the underlying WorkdayCalculator returns erroneously the value 2 instead of 0. This behavior is not conform with the calculations in MS Office and LibreOffice. Tests and a fix is provided in the attachment.
Applied via r1776588, thanks for the Patch!