Calculates amount of overtime