Given 2 dates, how can i calculate the number of hours/minutes between them, excluding weekend time (since Friday 17:30 till Monday 09:00)The script queries a MySql database but i assume this sort of calculations would be easier in php.I'm thinking of a iterative function to determine the weekday and keep looping until last date would be smaller than current day indicator?Any suggestions?