Try this
Click on Computer usage timeline to select it.
Then in filter write
away duration>7h
Then click on the arrow pointing down on the right side of the filter and choose Add to autotag.
Tag as Sleep.
Didn't test it, let me know if it doesn't work. There might be problems because it goes over midnight...