I’m trying to make a script which penalizes a user daily after a time stamp.
For the first day, it will penalize 1 point, second day 2 points, third 4 points, fourth 8 point, 16, 32, 64 and so on.
How would I go about auto generating a strtotime and the multiplications?
I really don’t even know what i’m looking for is called at this point which makes searching hard, sorry if this has been posted.
Let’s suppose, that $timestamp1 is the first day timestamp and the $timestamp2 is now timestamp. Then:
Sample results: