How to grant userpoints to users who perform a login 5 days consecutively? I need to know if a user has performed a login, for example, 5 days consecutively. The reason for this is I want to award User points to them. 

For example:


User A performs a login on Monday, Tuesday, Wednesday, Thursday and Friday. (granted 10 points)
User B performs a login on Monday, Tuesday, Thursday, Friday and Saturday. (no points)


I'm trying to do this with Rules but failed miserably. Any ideas?

Note: I'm trying to use Rules condition to compare my_last_login values against today's date with an offset of -1 days but it always return False.
Statistics module in the core would work in this case.