Stop the counter after user logout

Hi

How is it possible, when customers purchase credits, to stop the counter when they log out?
So lets say if someone purchased credit for 1 hour and is logging in for 10 min, after he logs out then he should have 50 min remaining.
But my counter is still counting, even after they logged out. So after 1h they dont have any time left..
Is it possible for the customers upon their 1st login this 1 hour credit be available lets say for 1 week?

So far I ve tried:
Set idle timeout → counter still counting
Set uptime limit → counter still counting


Any suggestions?

Thanks

I think I found it.

I had to set the credit time to 1 week and the uptime to 1h.
Right?