Count the number of weekends

Count the number of weekends

Can anyone tell me how to count the number of weekends between two given dates?
The reason I ask is I'm developing a scheduler for orders in production - each job has a certain amount of hours allocated to it. So In theory I have a start time (the time that the last job finished plus the allocated hours = the finish date. But because we don't work weekends, I need to insert 48 hours for each weekend between the two dates?