• would it make sense to calculate the overtime in a CASE statement eliminating the negatives before they get to your sum then? Something like:

    CASE WHEN Hoursworked > Dutyhours THEN Hoursworked-Dutyhours ELSE 0 END