implement algorithm for calculating working days