Hi there… Like for everything else, I think the answer is beer , or more specifically found in this comment relating to a brewing monitoring device, where it describes using transformation to calculate something which is a derived from 2 different items:
I use this approach for the same brewing device, and it works great, and at first glance, is looks like you may be able to implement a similar approach for your situation (Have a transformation on one of the items which calculates the result from both??)