Im trying to get access to work out the amount of time taken for my company to fix a customer fault when there is 8 hours in a week day and 0 hours at weekends.

Basically I want to feed in an occured date/time and a fix date/time and for it to return the amount of man hours taken to fix it.