Trial days building app

Hello devs.
Please try to build and app that can work for a certain period of time maybe like 5 days trial after that will stop working unless it's activated from my end here don't know if it's possible

The application is to control like 8 bulb using Arduino board.

this is very simple
you can use firebase or any other database when anyone open your app store device id and date and status as trial in data base and also in tinydb and use clock components to check data difference if date is >5 and status is trial show message to activate app when you change the status of that open home screen there your app work as it is

Thanks, but
Any sample blocks or code as a guide.