Time-integrated energy budget of a solar activity complex