Calculates the request payload size

def calculate_size(timeout, durability, transaction_type, thread_id):
    """ Calculates the request payload size"""
    data_size = 0
    data_size += LONG_SIZE_IN_BYTES
    data_size += INT_SIZE_IN_BYTES
    data_size += INT_SIZE_IN_BYTES
    data_size += LONG_SIZE_IN_BYTES
    return data_size