How long is DeviceActivityData accessible in DeviceActivityReport?

Using the DeviceActivity framework we are able to display data based on a user's screentime and device usage. With the DeviceActivityFilter property, you can specify the date interval to collect data between.

In testing, it seems that data only becomes accessible once the extension has been installed (so the extension isn't reading the screentime data already collected on device). However, once installed, I'm curious how far back you can query data from in the data interval?

Opal which uses the Screentime API appears to have a lifetime Screentime metric, so hypothetically it should possible to query data as far back as collection starts. Unless they are getting around the sandbox environment and storing the data somehow.

Side note on Opal -- They seem to have a community average of Screentime among people in the same age group. Does anyone know how they are collecting the data for this average? Is it actually using live Screentime data or just aggregating data from other studies?

Opal seems to be able to save average screentime over a time-period. We are looking to do something similar but haven't been able to find a way to do it. Any help will be appreciated.

Any idea on how Opal is able to achieve it?

How long is DeviceActivityData accessible in DeviceActivityReport?
 
 
Q