The networkdays function returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holiday.
In your example the top row has Sunday so only one network day vs the second transaction that has to network days.