Calculate difference between two dates in sharepoint

I am wanting to create a holiday booking application, using a infopath 2007 and sharepoint list.

I can easily calculate the difference between two dates, but this includes weekends when I only want to include weekdays

Anyone come across a way to do this?ram