BA would probably consider the 5 hour delay to the 2nd day flight as a continuation of the delay to the first one. The OP mentioned that the flight number the next day wasn't the usual, which might mean 'BA123' became 'BA9123' or 'BA123P' and BA treat this as a 29 hour delay.