timeout calc fix