def calculate_size(name, overflow_policy, value):
    """ Calculates the request payload size"""
    data_size = 0
    data_size += calculate_size_str(name)
    data_size += INT_SIZE_IN_BYTES
    data_size += calculate_size_data(value)
    return data_size
def calculate_size ( name , overflow_policy , value ) : data_size = 0 data_size += calculate_size_str ( name ) data_size += INT_SIZE_IN_BYTES data_size += calculate_size_data ( value ) return data_size
Calculates the request payload size