Is there a way to calculate net energy from dietaryConsumedEnergy and dietaryConsumedEnergy from HKStatisticsCollectionQuery

I want to get the query results from: dietaryConsumedEnergy - dietaryConsumedEnergy = net energy for each day for the current week.

for each statistics object we get back.
Is there a way to do that within the query?
Is there a way to calculate net energy from dietaryConsumedEnergy and dietaryConsumedEnergy from HKStatisticsCollectionQuery
 
 
Q