I can provide a solution with additive homomorphic schemes like the Paillier encryption scheme or with FHE, however, this will be slow.
Represent the last $n$ days a bit vector of size $n$ where $1$ represent used was logged in and $0$ is the otherwise ( and for simplicity, we represent only for 5 days).
$$[0,1,1,0,0]$$
Each bit is Paillier encryption ( represent as $E_{pai}$ ) of either one or zero.
$$[E_{pai}(0),E_{pai}(1),E_{pai}(1),E_{pai}(0),E_{pai}(0)]$$ and store this information.
You can sum the bits with the additive homomorphism property of the Paillier and decrypt the summation result ($D_{pai}$) to see how many days the user entered.
$$days = D_{pai}(E_{pai}(0)+E_{pai}(1)+E_{pai}(1)+E_{pai}(0)+E_{pai}(0)) $$
You can decrypt each day to reveal the daily activities.
When a day is passed, shift the vector left by 1 and the new space will be the user's new activity;
$$[E_{pai}(1),E_{pai}(1),E_{pai}(0),E_{pai}(0),E_{pai}(0)].$$ That new value initially can be set encryption of zero, and updated to encryption of $1$ when necessary.
The sum and decryption are only necessary when requested. The new day data can be prepared during less active times of the server and stored.
Paillier is Ind-CPA secure that will not reveal information about the user data. Like any key-based solution, however, the server must protect the key at all costs. MYSQL has user-defined functions that may help to facilitate the use of Paillier and HSMs.