def calculate_size(name, from_, to):
data_size = <NUM_LIT:0><EOL>data_size += calculate_size_str(name)<EOL>data_size += INT_SIZE_IN_BYTES<EOL>data_size += INT_SIZE_IN_BYTES<EOL>return data_size<EOL>
Calculates the request payload size