If you use GPSTracker binding for your presence detection, why not also create personal GPS Tracks in GPX format and make time sheets when you enter or leave a specific place.
I wrote some python scripts for that which I tested with my mariaDB persistence on openhabianpy. They should work also with other SQL databases.
You find them on GitHub: openHABdbTools
Some further description how they work you can read here:
https://albold-home.de/create-gpx-tracks-with-openhab2-presence-detection/
https://albold-home.de/create-time-sheets-with-openhab2-persistence/