Hello
How did you get the protection? When you are raided, you only get a 4 hours protection, and the time flows even if you are offline. If you have a protection, disconnect and your protection run out, somebody can raid you, and when you connect, you could think your new protection from the last raid is always the same.
If you buy a protection with CC, or don't stay offline for too long, I don't know^^