Wouldn't it be when the oldest of those seven messages was?
If I write three messages on Wednesday and four on Friday, then when the following Wednesday comes, I will only have sent four messages in the past seven days, and so can send three more.
If I write three messages on Wednesday and four on Friday, then when the following Wednesday comes, I will only have sent four messages in the past seven days, and so can send three more.