I made a time calculate flow using this app. It might get you going:
You can import this flow right away using the Device Capabilities app from Arie