Working with SwiftDat

Does anyone know how I can “calculate” with SwiftData objects? For example in one model I have an integer, i save to a specific hour. Is it possible to get the average of this integer for let’s say 10am every day last week?

Working with SwiftDat
 
 
Q