code: def calculate_size(uuid, address, interrupt):
      
      data_size = 0
      data_size += calculate_size_str(uuid)
      data_size += calculate_size_address(address)
      data_size += BOOLEAN_SIZE_IN_BYTES
      return data_size
docs: Calculates the request payload size