how to kick off hotspot user only if they reach time and data limit

I configured mikrotik hotspot user profile with a specific data limit.
But sometimes users reached this data limit too quickly.
So I want to add a second condition on a minimum time limit.
How to configure user profile so that user are kicked off only if they matched the two conditions, which are time lime and data limit?

If you can define only time limit then use that, because if using and the data limit becomes obsolete.

So I assume what I want to achieve is not possible with routerOS.
Okay, thanks.

So basically you want

user1 that reaches data CAP before time limit to keep going until time limit reached??
user2 that reaches time limit to keep going until data CAP is reached??

Sounds like a script to be run on the router …
Run every 5 minutes or so that:
compares all users login time and current time to see if exceeds TIME XX
compares all users data usage to see if exceeds Amount YY
If both cases are true then stop user.

So it can be done, but it will take some work, there is no cookie cutter settings to do this for you.

Exactly, or to put it simpler : enable data limitation only after a certain amount of time.
Maybe i should have asked if there is a script to plan a data limitation to take effect after a certain period in future.

What you want, can be controlled using RADIUS (i.e. freeradius). I do exactly what you want on hotspots, running openwrt, using coova-chilli as captive portal (which is the most flexible, but most complicated CP), which cooperates with RADIUS. To get rid of the bad guys, downloading or watching high res videos, on a free hotspot, blocking WiFi airtime.
Dunno how to integrate this RADIUS functionality into MTs hotspots, which I consider not to be suitable for hotspots with “above basic” requirements.