All calculations regarding the Uptime tab of Windows computer assets are done by the website and their results are not stored in the database unfortunately.
We unfortunately are not able to share the code behind this, the calculations occur based on the values stored in tblUptime in the Lansweeper database.