Login once per week

I need to achieve limiting a user to login once per week.

The week starts on Mondays. So if the user logs in on thursday, they cannot login until the following monday. If they login monday then cannot login until the next monday. How can I achieve this?

I would like to use PHP to figure out the timing and then just store the value into a last logged in field and just test the current time against the last logged in time