Calculate data transfer for replication (Pull and push)

Any ideas for calculate the consume of data between CouchbaseLite and Syncgateway? (Pull and Push)

At a high level you can add up the size of the JSON data of all the documents on the source side that have changed since the last replication, plus their changed attachments. There’s extra overhead beyond that, a couple of hundred bytes per revision probably.

ok, i will use your solution and commit the results.
Thanks