fix: bulk_api loop duration calculation