Sorry to ask such a basic question, but I could not find any documentation on the exact conditions that delineate a “session” start and end, that go into the automatic calculation of Total Sessions, Playtime, etc, per below.

I’m mostly interested in the “end” delineation of a session, (what triggers it), as I assume the “start” simply comes from loading the game.
Also - I assume the playtime is exactly calculated from the session (end-start) metrics, but if that is not the case, I’d love to know how that is calculated as well. I’d also like to know what affect, if any, putting a game into the background has on calculation of playtime (or session).
If these details are documented somewhere, please feel free to toss me a link. (I looked in the glossary and various parts of the forum, but could not find the info).
Thank you!
Uri