How to compare and sum docs with different values

@Den1

You either need to change how you ingest the data or post process the documents.

Here's a discussion around a similar need - Calculation time difference between two document